bailinghub 0.9.3 → 0.10.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (1264) hide show
  1. package/.dockerignore +1 -0
  2. package/.gitignore +1 -0
  3. package/.npmignore +1 -0
  4. package/Dockerfile +1 -0
  5. package/README.en.md +6 -6
  6. package/README.md +6 -6
  7. package/SECURITY.md +3 -3
  8. package/THIRD_PARTY_NOTICES.md +8 -8
  9. package/docker-compose.images.yml +2 -2
  10. package/docs/AGENT_CLIENT_QUICKSTART.en.md +1 -3
  11. package/docs/AGENT_CLIENT_QUICKSTART.md +1 -1
  12. package/docs/AGENT_CLIENT_RUNTIME_API.en.md +87 -2
  13. package/docs/AGENT_CLIENT_RUNTIME_API.md +36 -2
  14. package/docs/AGENT_KNOWLEDGE_API.en.md +77 -0
  15. package/docs/AGENT_KNOWLEDGE_API.md +86 -0
  16. package/docs/AGENT_TASK_CONTROL.md +4 -4
  17. package/docs/AGENT_TASK_CONTROL_FOUNDATION.md +1 -1
  18. package/docs/ARCHITECTURE.md +4 -0
  19. package/docs/CHANGELOG.en.md +24 -1
  20. package/docs/CHANGELOG.md +24 -1
  21. package/docs/COMPATIBILITY.en.md +27 -1
  22. package/docs/CONTRACT.en.md +1 -1
  23. package/docs/CONTRACT.md +1 -1
  24. package/docs/DOCX_DEPENDENCY.en.md +26 -0
  25. package/docs/DOCX_DEPENDENCY.md +26 -0
  26. package/docs/IMPLEMENTATION_STATUS.en.md +23 -15
  27. package/docs/IMPLEMENTATION_STATUS.md +23 -15
  28. package/docs/INDEPENDENT_VALIDATION.en.md +6 -4
  29. package/docs/INDEPENDENT_VALIDATION.md +6 -4
  30. package/docs/INTEGRATION_WALKTHROUGH.md +65 -0
  31. package/docs/MODEL_BILLING.en.md +2 -0
  32. package/docs/MODEL_BILLING.md +6 -2
  33. package/docs/MODEL_CONTINUATION.en.md +54 -0
  34. package/docs/MODEL_CONTINUATION.md +54 -0
  35. package/docs/MODEL_OUTPUT_BUDGET.en.md +69 -0
  36. package/docs/MODEL_OUTPUT_BUDGET.md +69 -0
  37. package/docs/NOTIFICATION_DURABILITY.en.md +47 -0
  38. package/docs/NOTIFICATION_DURABILITY.md +47 -0
  39. package/docs/OPERATIONS.en.md +22 -6
  40. package/docs/OPERATIONS.md +22 -6
  41. package/docs/QUICKSTART.md +1 -1
  42. package/docs/README.en.md +9 -0
  43. package/docs/README.md +9 -0
  44. package/docs/RELEASE_NOTES_NEXT.en.md +3 -3
  45. package/docs/RELEASE_NOTES_NEXT.md +3 -3
  46. package/docs/RELEASE_NOTES_v0.10.0.en.md +58 -0
  47. package/docs/RELEASE_NOTES_v0.10.0.md +58 -0
  48. package/docs/RELEASE_NOTES_v0.9.4.en.md +42 -0
  49. package/docs/RELEASE_NOTES_v0.9.4.md +42 -0
  50. package/docs/UPGRADE_PLAN.en.md +118 -0
  51. package/docs/UPGRADE_PLAN.md +124 -0
  52. package/docs/UPGRADE_v0.10.0.en.md +47 -0
  53. package/docs/UPGRADE_v0.10.0.md +47 -0
  54. package/docs/UPGRADE_v0.9.4.en.md +57 -0
  55. package/docs/UPGRADE_v0.9.4.md +57 -0
  56. package/docs//345/205/274/345/256/271/346/200/247/344/270/216/345/215/207/347/272/247.md +38 -22
  57. package/node_modules/@xmldom/xmldom/CHANGELOG.md +533 -0
  58. package/node_modules/@xmldom/xmldom/LICENSE +8 -0
  59. package/node_modules/@xmldom/xmldom/SECURITY.md +50 -0
  60. package/node_modules/@xmldom/xmldom/index.d.ts +96 -0
  61. package/node_modules/@xmldom/xmldom/lib/.eslintrc.yml +2 -0
  62. package/node_modules/@xmldom/xmldom/lib/conventions.js +214 -0
  63. package/node_modules/@xmldom/xmldom/lib/dom-parser.js +322 -0
  64. package/node_modules/@xmldom/xmldom/lib/dom.js +2266 -0
  65. package/node_modules/@xmldom/xmldom/lib/entities.js +2166 -0
  66. package/node_modules/@xmldom/xmldom/lib/index.js +4 -0
  67. package/node_modules/@xmldom/xmldom/lib/sax.js +683 -0
  68. package/node_modules/@xmldom/xmldom/package.json +75 -0
  69. package/node_modules/@xmldom/xmldom/readme.md +356 -0
  70. package/node_modules/base64-js/LICENSE +21 -0
  71. package/node_modules/base64-js/README.md +34 -0
  72. package/node_modules/base64-js/base64js.min.js +1 -0
  73. package/node_modules/base64-js/index.d.ts +3 -0
  74. package/node_modules/base64-js/index.js +150 -0
  75. package/node_modules/base64-js/package.json +47 -0
  76. package/node_modules/bluebird/LICENSE +21 -0
  77. package/node_modules/bluebird/README.md +51 -0
  78. package/node_modules/bluebird/changelog.md +1 -0
  79. package/node_modules/bluebird/js/browser/bluebird.core.js +3739 -0
  80. package/node_modules/bluebird/js/browser/bluebird.core.min.js +31 -0
  81. package/node_modules/bluebird/js/browser/bluebird.js +5581 -0
  82. package/node_modules/bluebird/js/browser/bluebird.min.js +31 -0
  83. package/node_modules/bluebird/js/release/any.js +21 -0
  84. package/node_modules/bluebird/js/release/assert.js +55 -0
  85. package/node_modules/bluebird/js/release/async.js +161 -0
  86. package/node_modules/bluebird/js/release/bind.js +67 -0
  87. package/node_modules/bluebird/js/release/bluebird.js +11 -0
  88. package/node_modules/bluebird/js/release/call_get.js +123 -0
  89. package/node_modules/bluebird/js/release/cancel.js +129 -0
  90. package/node_modules/bluebird/js/release/catch_filter.js +42 -0
  91. package/node_modules/bluebird/js/release/context.js +69 -0
  92. package/node_modules/bluebird/js/release/debuggability.js +916 -0
  93. package/node_modules/bluebird/js/release/direct_resolve.js +46 -0
  94. package/node_modules/bluebird/js/release/each.js +30 -0
  95. package/node_modules/bluebird/js/release/errors.js +116 -0
  96. package/node_modules/bluebird/js/release/es5.js +80 -0
  97. package/node_modules/bluebird/js/release/filter.js +12 -0
  98. package/node_modules/bluebird/js/release/finally.js +111 -0
  99. package/node_modules/bluebird/js/release/generators.js +223 -0
  100. package/node_modules/bluebird/js/release/join.js +168 -0
  101. package/node_modules/bluebird/js/release/map.js +168 -0
  102. package/node_modules/bluebird/js/release/method.js +55 -0
  103. package/node_modules/bluebird/js/release/nodeback.js +51 -0
  104. package/node_modules/bluebird/js/release/nodeify.js +58 -0
  105. package/node_modules/bluebird/js/release/promise.js +773 -0
  106. package/node_modules/bluebird/js/release/promise_array.js +184 -0
  107. package/node_modules/bluebird/js/release/promisify.js +314 -0
  108. package/node_modules/bluebird/js/release/props.js +118 -0
  109. package/node_modules/bluebird/js/release/queue.js +73 -0
  110. package/node_modules/bluebird/js/release/race.js +49 -0
  111. package/node_modules/bluebird/js/release/reduce.js +172 -0
  112. package/node_modules/bluebird/js/release/schedule.js +61 -0
  113. package/node_modules/bluebird/js/release/settle.js +43 -0
  114. package/node_modules/bluebird/js/release/some.js +148 -0
  115. package/node_modules/bluebird/js/release/synchronous_inspection.js +103 -0
  116. package/node_modules/bluebird/js/release/thenables.js +86 -0
  117. package/node_modules/bluebird/js/release/timers.js +93 -0
  118. package/node_modules/bluebird/js/release/using.js +226 -0
  119. package/node_modules/bluebird/js/release/util.js +379 -0
  120. package/node_modules/bluebird/package.json +76 -0
  121. package/node_modules/core-util-is/LICENSE +19 -0
  122. package/node_modules/core-util-is/README.md +3 -0
  123. package/node_modules/core-util-is/lib/util.js +107 -0
  124. package/node_modules/core-util-is/package.json +38 -0
  125. package/node_modules/dingbat-to-unicode/README.md +79 -0
  126. package/node_modules/dingbat-to-unicode/dist/dingbats.d.ts +8 -0
  127. package/node_modules/dingbat-to-unicode/dist/dingbats.js +1066 -0
  128. package/node_modules/dingbat-to-unicode/dist/index.d.ts +7 -0
  129. package/node_modules/dingbat-to-unicode/dist/index.js +44 -0
  130. package/node_modules/dingbat-to-unicode/package.json +39 -0
  131. package/node_modules/duck/LICENSE +22 -0
  132. package/node_modules/duck/README.md +184 -0
  133. package/node_modules/duck/index.js +267 -0
  134. package/node_modules/duck/makefile +4 -0
  135. package/node_modules/duck/package.json +23 -0
  136. package/node_modules/duck/test/duck.test.js +160 -0
  137. package/node_modules/immediate/LICENSE.txt +20 -0
  138. package/node_modules/immediate/README.md +93 -0
  139. package/node_modules/immediate/dist/immediate.js +75 -0
  140. package/node_modules/immediate/dist/immediate.min.js +1 -0
  141. package/node_modules/immediate/lib/browser.js +69 -0
  142. package/node_modules/immediate/lib/index.js +73 -0
  143. package/node_modules/immediate/package.json +42 -0
  144. package/node_modules/inherits/LICENSE +16 -0
  145. package/node_modules/inherits/README.md +42 -0
  146. package/node_modules/inherits/inherits.js +9 -0
  147. package/node_modules/inherits/inherits_browser.js +27 -0
  148. package/node_modules/inherits/package.json +29 -0
  149. package/node_modules/isarray/.npmignore +1 -0
  150. package/node_modules/isarray/.travis.yml +4 -0
  151. package/node_modules/isarray/Makefile +6 -0
  152. package/node_modules/isarray/README.md +60 -0
  153. package/node_modules/isarray/component.json +19 -0
  154. package/node_modules/isarray/index.js +5 -0
  155. package/node_modules/isarray/package.json +45 -0
  156. package/node_modules/isarray/test.js +20 -0
  157. package/node_modules/jszip/.codeclimate.yml +16 -0
  158. package/node_modules/jszip/.editorconfig +8 -0
  159. package/node_modules/jszip/.eslintrc.js +43 -0
  160. package/node_modules/jszip/.github/workflows/pr.yaml +58 -0
  161. package/node_modules/jszip/.jekyll-metadata +0 -0
  162. package/node_modules/jszip/.travis.yml +17 -0
  163. package/node_modules/jszip/CHANGES.md +204 -0
  164. package/node_modules/jszip/LICENSE.markdown +651 -0
  165. package/node_modules/jszip/README.markdown +33 -0
  166. package/node_modules/jszip/deps.js +37 -0
  167. package/node_modules/jszip/dist/jszip.js +11577 -0
  168. package/node_modules/jszip/dist/jszip.min.js +13 -0
  169. package/node_modules/jszip/graph.svg +601 -0
  170. package/node_modules/jszip/index.d.ts +330 -0
  171. package/node_modules/jszip/lib/base64.js +106 -0
  172. package/node_modules/jszip/lib/compressedObject.js +74 -0
  173. package/node_modules/jszip/lib/compressions.js +14 -0
  174. package/node_modules/jszip/lib/crc32.js +77 -0
  175. package/node_modules/jszip/lib/defaults.js +11 -0
  176. package/node_modules/jszip/lib/external.js +18 -0
  177. package/node_modules/jszip/lib/flate.js +85 -0
  178. package/node_modules/jszip/lib/generate/ZipFileWorker.js +539 -0
  179. package/node_modules/jszip/lib/generate/index.js +57 -0
  180. package/node_modules/jszip/lib/index.js +55 -0
  181. package/node_modules/jszip/lib/license_header.js +11 -0
  182. package/node_modules/jszip/lib/load.js +88 -0
  183. package/node_modules/jszip/lib/nodejs/NodejsStreamInputAdapter.js +74 -0
  184. package/node_modules/jszip/lib/nodejs/NodejsStreamOutputAdapter.js +42 -0
  185. package/node_modules/jszip/lib/nodejsUtils.js +57 -0
  186. package/node_modules/jszip/lib/object.js +384 -0
  187. package/node_modules/jszip/lib/readable-stream-browser.js +10 -0
  188. package/node_modules/jszip/lib/reader/ArrayReader.js +57 -0
  189. package/node_modules/jszip/lib/reader/DataReader.js +116 -0
  190. package/node_modules/jszip/lib/reader/NodeBufferReader.js +19 -0
  191. package/node_modules/jszip/lib/reader/StringReader.js +38 -0
  192. package/node_modules/jszip/lib/reader/Uint8ArrayReader.js +22 -0
  193. package/node_modules/jszip/lib/reader/readerFor.js +28 -0
  194. package/node_modules/jszip/lib/signature.js +7 -0
  195. package/node_modules/jszip/lib/stream/ConvertWorker.js +26 -0
  196. package/node_modules/jszip/lib/stream/Crc32Probe.js +24 -0
  197. package/node_modules/jszip/lib/stream/DataLengthProbe.js +29 -0
  198. package/node_modules/jszip/lib/stream/DataWorker.js +116 -0
  199. package/node_modules/jszip/lib/stream/GenericWorker.js +263 -0
  200. package/node_modules/jszip/lib/stream/StreamHelper.js +214 -0
  201. package/node_modules/jszip/lib/support.js +38 -0
  202. package/node_modules/jszip/lib/utf8.js +275 -0
  203. package/node_modules/jszip/lib/utils.js +501 -0
  204. package/node_modules/jszip/lib/zipEntries.js +261 -0
  205. package/node_modules/jszip/lib/zipEntry.js +293 -0
  206. package/node_modules/jszip/lib/zipObject.js +133 -0
  207. package/node_modules/jszip/package.json +67 -0
  208. package/node_modules/jszip/sponsors.md +21 -0
  209. package/node_modules/jszip/tsconfig.json +101 -0
  210. package/node_modules/jszip/vendor/FileSaver.js +247 -0
  211. package/node_modules/lie/README.md +62 -0
  212. package/node_modules/lie/dist/lie.js +350 -0
  213. package/node_modules/lie/dist/lie.min.js +1 -0
  214. package/node_modules/lie/dist/lie.polyfill.js +358 -0
  215. package/node_modules/lie/dist/lie.polyfill.min.js +1 -0
  216. package/node_modules/lie/lib/browser.js +273 -0
  217. package/node_modules/lie/lib/index.js +298 -0
  218. package/node_modules/lie/license.md +7 -0
  219. package/node_modules/lie/lie.d.ts +244 -0
  220. package/node_modules/lie/package.json +69 -0
  221. package/node_modules/lie/polyfill.js +4 -0
  222. package/node_modules/lop/LICENSE +22 -0
  223. package/node_modules/lop/README.md +248 -0
  224. package/node_modules/lop/index.js +18 -0
  225. package/node_modules/lop/lib/StringSource.js +53 -0
  226. package/node_modules/lop/lib/Token.js +7 -0
  227. package/node_modules/lop/lib/TokenIterator.js +28 -0
  228. package/node_modules/lop/lib/bottom-up.js +128 -0
  229. package/node_modules/lop/lib/errors.js +22 -0
  230. package/node_modules/lop/lib/lazy-iterators.js +81 -0
  231. package/node_modules/lop/lib/parser.js +11 -0
  232. package/node_modules/lop/lib/parsing-results.js +103 -0
  233. package/node_modules/lop/lib/regex-tokeniser.js +70 -0
  234. package/node_modules/lop/lib/rules.js +313 -0
  235. package/node_modules/lop/lib/testing.js +69 -0
  236. package/node_modules/lop/makefile +4 -0
  237. package/node_modules/lop/package.json +24 -0
  238. package/node_modules/lop/test/StringSource.test.js +21 -0
  239. package/node_modules/lop/test/TokenIterator.test.js +17 -0
  240. package/node_modules/lop/test/Tokeniser.js +50 -0
  241. package/node_modules/lop/test/Tokeniser.test.js +38 -0
  242. package/node_modules/lop/test/bottom-up.test.js +187 -0
  243. package/node_modules/lop/test/errors.test.js +36 -0
  244. package/node_modules/lop/test/lazy-iterators.test.js +53 -0
  245. package/node_modules/lop/test/lop.test.js +27 -0
  246. package/node_modules/lop/test/regex-tokeniser.test.js +114 -0
  247. package/node_modules/lop/test/results.test.js +8 -0
  248. package/node_modules/lop/test/rules.test.js +617 -0
  249. package/node_modules/mammoth/LICENSE +22 -0
  250. package/node_modules/mammoth/SOURCE.json +57 -0
  251. package/node_modules/mammoth/browser/docx/files.js +14 -0
  252. package/node_modules/mammoth/browser/unzip.js +12 -0
  253. package/node_modules/mammoth/lib/document-to-html.js +469 -0
  254. package/node_modules/mammoth/lib/documents.js +254 -0
  255. package/node_modules/mammoth/lib/docx/body-reader.js +798 -0
  256. package/node_modules/mammoth/lib/docx/comments-reader.js +31 -0
  257. package/node_modules/mammoth/lib/docx/content-types-reader.js +58 -0
  258. package/node_modules/mammoth/lib/docx/document-xml-reader.js +30 -0
  259. package/node_modules/mammoth/lib/docx/docx-reader.js +226 -0
  260. package/node_modules/mammoth/lib/docx/files.js +80 -0
  261. package/node_modules/mammoth/lib/docx/notes-reader.js +28 -0
  262. package/node_modules/mammoth/lib/docx/numbering-xml.js +111 -0
  263. package/node_modules/mammoth/lib/docx/office-xml-reader.js +73 -0
  264. package/node_modules/mammoth/lib/docx/relationships-reader.js +43 -0
  265. package/node_modules/mammoth/lib/docx/style-map.js +75 -0
  266. package/node_modules/mammoth/lib/docx/styles-reader.js +90 -0
  267. package/node_modules/mammoth/lib/docx/uris.js +21 -0
  268. package/node_modules/mammoth/lib/html/ast.js +51 -0
  269. package/node_modules/mammoth/lib/html/index.js +41 -0
  270. package/node_modules/mammoth/lib/html/simplify.js +88 -0
  271. package/node_modules/mammoth/lib/images.js +31 -0
  272. package/node_modules/mammoth/lib/index.d.ts +86 -0
  273. package/node_modules/mammoth/lib/index.js +111 -0
  274. package/node_modules/mammoth/lib/options-reader.js +107 -0
  275. package/node_modules/mammoth/lib/promises.js +42 -0
  276. package/node_modules/mammoth/lib/raw-text.js +14 -0
  277. package/node_modules/mammoth/lib/results.js +72 -0
  278. package/node_modules/mammoth/lib/style-reader.js +365 -0
  279. package/node_modules/mammoth/lib/styles/document-matchers.js +100 -0
  280. package/node_modules/mammoth/lib/styles/html-paths.js +75 -0
  281. package/node_modules/mammoth/lib/styles/parser/tokeniser.js +30 -0
  282. package/node_modules/mammoth/lib/transforms.js +62 -0
  283. package/node_modules/mammoth/lib/underline.js +11 -0
  284. package/node_modules/mammoth/lib/unzip.js +20 -0
  285. package/node_modules/mammoth/lib/writers/html-writer.js +159 -0
  286. package/node_modules/mammoth/lib/writers/index.js +14 -0
  287. package/node_modules/mammoth/lib/writers/markdown-writer.js +163 -0
  288. package/node_modules/mammoth/lib/xml/index.js +8 -0
  289. package/node_modules/mammoth/lib/xml/nodes.js +70 -0
  290. package/node_modules/mammoth/lib/xml/reader.js +69 -0
  291. package/node_modules/mammoth/lib/xml/writer.js +61 -0
  292. package/node_modules/mammoth/lib/xml/xmldom.js +23 -0
  293. package/node_modules/mammoth/lib/zipfile.js +72 -0
  294. package/node_modules/mammoth/package.json +39 -0
  295. package/node_modules/mammoth/upstream-package.json +64 -0
  296. package/node_modules/option/.npmignore +1 -0
  297. package/node_modules/option/LICENSE +22 -0
  298. package/node_modules/option/README.md +101 -0
  299. package/node_modules/option/index.js +88 -0
  300. package/node_modules/option/package.json +23 -0
  301. package/node_modules/option/test/options.test.js +174 -0
  302. package/node_modules/pako/CHANGELOG.md +164 -0
  303. package/node_modules/pako/LICENSE +21 -0
  304. package/node_modules/pako/README.md +191 -0
  305. package/node_modules/pako/dist/pako.js +6818 -0
  306. package/node_modules/pako/dist/pako.min.js +1 -0
  307. package/node_modules/pako/dist/pako_deflate.js +3997 -0
  308. package/node_modules/pako/dist/pako_deflate.min.js +1 -0
  309. package/node_modules/pako/dist/pako_inflate.js +3300 -0
  310. package/node_modules/pako/dist/pako_inflate.min.js +1 -0
  311. package/node_modules/pako/index.js +14 -0
  312. package/node_modules/pako/lib/deflate.js +400 -0
  313. package/node_modules/pako/lib/inflate.js +423 -0
  314. package/node_modules/pako/lib/utils/common.js +105 -0
  315. package/node_modules/pako/lib/utils/strings.js +187 -0
  316. package/node_modules/pako/lib/zlib/README +59 -0
  317. package/node_modules/pako/lib/zlib/adler32.js +51 -0
  318. package/node_modules/pako/lib/zlib/constants.js +68 -0
  319. package/node_modules/pako/lib/zlib/crc32.js +59 -0
  320. package/node_modules/pako/lib/zlib/deflate.js +1874 -0
  321. package/node_modules/pako/lib/zlib/gzheader.js +58 -0
  322. package/node_modules/pako/lib/zlib/inffast.js +345 -0
  323. package/node_modules/pako/lib/zlib/inflate.js +1556 -0
  324. package/node_modules/pako/lib/zlib/inftrees.js +343 -0
  325. package/node_modules/pako/lib/zlib/messages.js +32 -0
  326. package/node_modules/pako/lib/zlib/trees.js +1222 -0
  327. package/node_modules/pako/lib/zlib/zstream.js +47 -0
  328. package/node_modules/pako/package.json +44 -0
  329. package/node_modules/path-is-absolute/index.js +20 -0
  330. package/node_modules/path-is-absolute/license +21 -0
  331. package/node_modules/path-is-absolute/package.json +43 -0
  332. package/node_modules/path-is-absolute/readme.md +59 -0
  333. package/node_modules/process-nextick-args/index.js +45 -0
  334. package/node_modules/process-nextick-args/license.md +19 -0
  335. package/node_modules/process-nextick-args/package.json +25 -0
  336. package/node_modules/process-nextick-args/readme.md +18 -0
  337. package/node_modules/readable-stream/.travis.yml +34 -0
  338. package/node_modules/readable-stream/CONTRIBUTING.md +38 -0
  339. package/node_modules/readable-stream/GOVERNANCE.md +136 -0
  340. package/node_modules/readable-stream/LICENSE +47 -0
  341. package/node_modules/readable-stream/README.md +58 -0
  342. package/node_modules/readable-stream/doc/wg-meetings/2015-01-30.md +60 -0
  343. package/node_modules/readable-stream/duplex-browser.js +1 -0
  344. package/node_modules/readable-stream/duplex.js +1 -0
  345. package/node_modules/readable-stream/lib/_stream_duplex.js +131 -0
  346. package/node_modules/readable-stream/lib/_stream_passthrough.js +47 -0
  347. package/node_modules/readable-stream/lib/_stream_readable.js +1019 -0
  348. package/node_modules/readable-stream/lib/_stream_transform.js +214 -0
  349. package/node_modules/readable-stream/lib/_stream_writable.js +685 -0
  350. package/node_modules/readable-stream/lib/internal/streams/BufferList.js +78 -0
  351. package/node_modules/readable-stream/lib/internal/streams/destroy.js +84 -0
  352. package/node_modules/readable-stream/lib/internal/streams/stream-browser.js +1 -0
  353. package/node_modules/readable-stream/lib/internal/streams/stream.js +1 -0
  354. package/node_modules/readable-stream/package.json +52 -0
  355. package/node_modules/readable-stream/passthrough.js +1 -0
  356. package/node_modules/readable-stream/readable-browser.js +7 -0
  357. package/node_modules/readable-stream/readable.js +19 -0
  358. package/node_modules/readable-stream/transform.js +1 -0
  359. package/node_modules/readable-stream/writable-browser.js +1 -0
  360. package/node_modules/readable-stream/writable.js +8 -0
  361. package/node_modules/safe-buffer/LICENSE +21 -0
  362. package/node_modules/safe-buffer/README.md +584 -0
  363. package/node_modules/safe-buffer/index.d.ts +187 -0
  364. package/node_modules/safe-buffer/index.js +62 -0
  365. package/node_modules/safe-buffer/package.json +37 -0
  366. package/node_modules/setimmediate/LICENSE.txt +20 -0
  367. package/node_modules/setimmediate/package.json +30 -0
  368. package/node_modules/setimmediate/setImmediate.js +186 -0
  369. package/node_modules/string_decoder/.travis.yml +50 -0
  370. package/node_modules/string_decoder/LICENSE +48 -0
  371. package/node_modules/string_decoder/README.md +47 -0
  372. package/node_modules/string_decoder/lib/string_decoder.js +296 -0
  373. package/node_modules/string_decoder/package.json +31 -0
  374. package/node_modules/underscore/LICENSE +22 -0
  375. package/node_modules/underscore/README.md +34 -0
  376. package/node_modules/underscore/amd/_baseCreate.js +21 -0
  377. package/node_modules/underscore/amd/_baseIteratee.js +15 -0
  378. package/node_modules/underscore/amd/_cb.js +12 -0
  379. package/node_modules/underscore/amd/_chainResult.js +10 -0
  380. package/node_modules/underscore/amd/_collectNonEnumProps.js +42 -0
  381. package/node_modules/underscore/amd/_createAssigner.js +24 -0
  382. package/node_modules/underscore/amd/_createEscaper.js +21 -0
  383. package/node_modules/underscore/amd/_createIndexFinder.js +30 -0
  384. package/node_modules/underscore/amd/_createPredicateIndexFinder.js +18 -0
  385. package/node_modules/underscore/amd/_createReduce.js +30 -0
  386. package/node_modules/underscore/amd/_createSizePropertyCheck.js +13 -0
  387. package/node_modules/underscore/amd/_deepGet.js +15 -0
  388. package/node_modules/underscore/amd/_escapeMap.js +15 -0
  389. package/node_modules/underscore/amd/_executeBound.js +16 -0
  390. package/node_modules/underscore/amd/_flatten.js +32 -0
  391. package/node_modules/underscore/amd/_getByteLength.js +8 -0
  392. package/node_modules/underscore/amd/_getLength.js +8 -0
  393. package/node_modules/underscore/amd/_group.js +18 -0
  394. package/node_modules/underscore/amd/_has.js +10 -0
  395. package/node_modules/underscore/amd/_hasObjectTag.js +7 -0
  396. package/node_modules/underscore/amd/_isArrayLike.js +11 -0
  397. package/node_modules/underscore/amd/_isBufferLike.js +9 -0
  398. package/node_modules/underscore/amd/_keyInObj.js +11 -0
  399. package/node_modules/underscore/amd/_methodFingerprint.js +44 -0
  400. package/node_modules/underscore/amd/_optimizeCb.js +27 -0
  401. package/node_modules/underscore/amd/_setup.js +70 -0
  402. package/node_modules/underscore/amd/_shallowProperty.js +12 -0
  403. package/node_modules/underscore/amd/_stringTagBug.js +19 -0
  404. package/node_modules/underscore/amd/_tagTester.js +13 -0
  405. package/node_modules/underscore/amd/_toBufferView.js +15 -0
  406. package/node_modules/underscore/amd/_toPath.js +11 -0
  407. package/node_modules/underscore/amd/_unescapeMap.js +8 -0
  408. package/node_modules/underscore/amd/after.js +14 -0
  409. package/node_modules/underscore/amd/allKeys.js +15 -0
  410. package/node_modules/underscore/amd/before.js +18 -0
  411. package/node_modules/underscore/amd/bind.js +15 -0
  412. package/node_modules/underscore/amd/bindAll.js +19 -0
  413. package/node_modules/underscore/amd/chain.js +12 -0
  414. package/node_modules/underscore/amd/chunk.js +17 -0
  415. package/node_modules/underscore/amd/clone.js +11 -0
  416. package/node_modules/underscore/amd/compact.js +10 -0
  417. package/node_modules/underscore/amd/compose.js +18 -0
  418. package/node_modules/underscore/amd/constant.js +12 -0
  419. package/node_modules/underscore/amd/contains.js +12 -0
  420. package/node_modules/underscore/amd/countBy.js +12 -0
  421. package/node_modules/underscore/amd/create.js +14 -0
  422. package/node_modules/underscore/amd/debounce.js +43 -0
  423. package/node_modules/underscore/amd/defaults.js +8 -0
  424. package/node_modules/underscore/amd/defer.js +9 -0
  425. package/node_modules/underscore/amd/delay.js +13 -0
  426. package/node_modules/underscore/amd/difference.js +14 -0
  427. package/node_modules/underscore/amd/each.js +25 -0
  428. package/node_modules/underscore/amd/escape.js +8 -0
  429. package/node_modules/underscore/amd/every.js +17 -0
  430. package/node_modules/underscore/amd/extend.js +8 -0
  431. package/node_modules/underscore/amd/extendOwn.js +10 -0
  432. package/node_modules/underscore/amd/filter.js +15 -0
  433. package/node_modules/underscore/amd/find.js +12 -0
  434. package/node_modules/underscore/amd/findIndex.js +8 -0
  435. package/node_modules/underscore/amd/findKey.js +15 -0
  436. package/node_modules/underscore/amd/findLastIndex.js +8 -0
  437. package/node_modules/underscore/amd/findWhere.js +11 -0
  438. package/node_modules/underscore/amd/first.js +13 -0
  439. package/node_modules/underscore/amd/flatten.js +11 -0
  440. package/node_modules/underscore/amd/functions.js +14 -0
  441. package/node_modules/underscore/amd/get.js +14 -0
  442. package/node_modules/underscore/amd/groupBy.js +11 -0
  443. package/node_modules/underscore/amd/has.js +19 -0
  444. package/node_modules/underscore/amd/identity.js +10 -0
  445. package/node_modules/underscore/amd/index-default.js +12 -0
  446. package/node_modules/underscore/amd/index.js +154 -0
  447. package/node_modules/underscore/amd/indexBy.js +11 -0
  448. package/node_modules/underscore/amd/indexOf.js +11 -0
  449. package/node_modules/underscore/amd/initial.js +12 -0
  450. package/node_modules/underscore/amd/intersection.js +22 -0
  451. package/node_modules/underscore/amd/invert.js +15 -0
  452. package/node_modules/underscore/amd/invoke.js +28 -0
  453. package/node_modules/underscore/amd/isArguments.js +19 -0
  454. package/node_modules/underscore/amd/isArray.js +9 -0
  455. package/node_modules/underscore/amd/isArrayBuffer.js +7 -0
  456. package/node_modules/underscore/amd/isBoolean.js +10 -0
  457. package/node_modules/underscore/amd/isDataView.js +17 -0
  458. package/node_modules/underscore/amd/isDate.js +7 -0
  459. package/node_modules/underscore/amd/isElement.js +10 -0
  460. package/node_modules/underscore/amd/isEmpty.js +18 -0
  461. package/node_modules/underscore/amd/isEqual.js +133 -0
  462. package/node_modules/underscore/amd/isError.js +7 -0
  463. package/node_modules/underscore/amd/isFinite.js +10 -0
  464. package/node_modules/underscore/amd/isFunction.js +18 -0
  465. package/node_modules/underscore/amd/isMap.js +7 -0
  466. package/node_modules/underscore/amd/isMatch.js +17 -0
  467. package/node_modules/underscore/amd/isNaN.js +10 -0
  468. package/node_modules/underscore/amd/isNull.js +10 -0
  469. package/node_modules/underscore/amd/isNumber.js +7 -0
  470. package/node_modules/underscore/amd/isObject.js +11 -0
  471. package/node_modules/underscore/amd/isRegExp.js +7 -0
  472. package/node_modules/underscore/amd/isSet.js +7 -0
  473. package/node_modules/underscore/amd/isString.js +7 -0
  474. package/node_modules/underscore/amd/isSymbol.js +7 -0
  475. package/node_modules/underscore/amd/isTypedArray.js +16 -0
  476. package/node_modules/underscore/amd/isUndefined.js +10 -0
  477. package/node_modules/underscore/amd/isWeakMap.js +7 -0
  478. package/node_modules/underscore/amd/isWeakSet.js +7 -0
  479. package/node_modules/underscore/amd/iteratee.js +13 -0
  480. package/node_modules/underscore/amd/keys.js +17 -0
  481. package/node_modules/underscore/amd/last.js +13 -0
  482. package/node_modules/underscore/amd/lastIndexOf.js +9 -0
  483. package/node_modules/underscore/amd/map.js +18 -0
  484. package/node_modules/underscore/amd/mapObject.js +19 -0
  485. package/node_modules/underscore/amd/matcher.js +14 -0
  486. package/node_modules/underscore/amd/max.js +30 -0
  487. package/node_modules/underscore/amd/memoize.js +17 -0
  488. package/node_modules/underscore/amd/min.js +30 -0
  489. package/node_modules/underscore/amd/mixin.js +18 -0
  490. package/node_modules/underscore/amd/negate.js +12 -0
  491. package/node_modules/underscore/amd/noop.js +8 -0
  492. package/node_modules/underscore/amd/now.js +10 -0
  493. package/node_modules/underscore/amd/object.js +20 -0
  494. package/node_modules/underscore/amd/omit.js +20 -0
  495. package/node_modules/underscore/amd/once.js +9 -0
  496. package/node_modules/underscore/amd/pairs.js +17 -0
  497. package/node_modules/underscore/amd/partial.js +25 -0
  498. package/node_modules/underscore/amd/partition.js +11 -0
  499. package/node_modules/underscore/amd/pick.js +25 -0
  500. package/node_modules/underscore/amd/pipe.js +13 -0
  501. package/node_modules/underscore/amd/pluck.js +10 -0
  502. package/node_modules/underscore/amd/property.js +14 -0
  503. package/node_modules/underscore/amd/propertyOf.js +13 -0
  504. package/node_modules/underscore/amd/random.js +14 -0
  505. package/node_modules/underscore/amd/range.js +27 -0
  506. package/node_modules/underscore/amd/reduce.js +9 -0
  507. package/node_modules/underscore/amd/reduceRight.js +8 -0
  508. package/node_modules/underscore/amd/reject.js +10 -0
  509. package/node_modules/underscore/amd/rest.js +12 -0
  510. package/node_modules/underscore/amd/restArguments.js +33 -0
  511. package/node_modules/underscore/amd/result.js +25 -0
  512. package/node_modules/underscore/amd/sample.js +27 -0
  513. package/node_modules/underscore/amd/shuffle.js +10 -0
  514. package/node_modules/underscore/amd/size.js +11 -0
  515. package/node_modules/underscore/amd/some.js +17 -0
  516. package/node_modules/underscore/amd/sortBy.js +26 -0
  517. package/node_modules/underscore/amd/sortedIndex.js +18 -0
  518. package/node_modules/underscore/amd/tap.js +13 -0
  519. package/node_modules/underscore/amd/template.js +103 -0
  520. package/node_modules/underscore/amd/templateSettings.js +13 -0
  521. package/node_modules/underscore/amd/throttle.js +51 -0
  522. package/node_modules/underscore/amd/times.js +13 -0
  523. package/node_modules/underscore/amd/toArray.js +18 -0
  524. package/node_modules/underscore/amd/toPath.js +12 -0
  525. package/node_modules/underscore/amd/underscore-array-methods.js +30 -0
  526. package/node_modules/underscore/amd/underscore.js +29 -0
  527. package/node_modules/underscore/amd/unescape.js +8 -0
  528. package/node_modules/underscore/amd/union.js +11 -0
  529. package/node_modules/underscore/amd/uniq.js +37 -0
  530. package/node_modules/underscore/amd/uniqueId.js +13 -0
  531. package/node_modules/underscore/amd/unzip.js +17 -0
  532. package/node_modules/underscore/amd/values.js +16 -0
  533. package/node_modules/underscore/amd/where.js +11 -0
  534. package/node_modules/underscore/amd/without.js +10 -0
  535. package/node_modules/underscore/amd/wrap.js +12 -0
  536. package/node_modules/underscore/amd/zip.js +9 -0
  537. package/node_modules/underscore/cjs/_baseCreate.js +20 -0
  538. package/node_modules/underscore/cjs/_baseIteratee.js +19 -0
  539. package/node_modules/underscore/cjs/_cb.js +12 -0
  540. package/node_modules/underscore/cjs/_chainResult.js +8 -0
  541. package/node_modules/underscore/cjs/_collectNonEnumProps.js +42 -0
  542. package/node_modules/underscore/cjs/_createAssigner.js +20 -0
  543. package/node_modules/underscore/cjs/_createEscaper.js +19 -0
  544. package/node_modules/underscore/cjs/_createIndexFinder.js +30 -0
  545. package/node_modules/underscore/cjs/_createPredicateIndexFinder.js +17 -0
  546. package/node_modules/underscore/cjs/_createReduce.js +30 -0
  547. package/node_modules/underscore/cjs/_createSizePropertyCheck.js +11 -0
  548. package/node_modules/underscore/cjs/_deepGet.js +11 -0
  549. package/node_modules/underscore/cjs/_escapeMap.js +11 -0
  550. package/node_modules/underscore/cjs/_executeBound.js +15 -0
  551. package/node_modules/underscore/cjs/_flatten.js +33 -0
  552. package/node_modules/underscore/cjs/_getByteLength.js +6 -0
  553. package/node_modules/underscore/cjs/_getLength.js +6 -0
  554. package/node_modules/underscore/cjs/_group.js +17 -0
  555. package/node_modules/underscore/cjs/_has.js +8 -0
  556. package/node_modules/underscore/cjs/_hasObjectTag.js +5 -0
  557. package/node_modules/underscore/cjs/_isArrayLike.js +10 -0
  558. package/node_modules/underscore/cjs/_isBufferLike.js +8 -0
  559. package/node_modules/underscore/cjs/_keyInObj.js +7 -0
  560. package/node_modules/underscore/cjs/_methodFingerprint.js +44 -0
  561. package/node_modules/underscore/cjs/_optimizeCb.js +23 -0
  562. package/node_modules/underscore/cjs/_setup.js +66 -0
  563. package/node_modules/underscore/cjs/_shallowProperty.js +8 -0
  564. package/node_modules/underscore/cjs/_stringTagBug.js +18 -0
  565. package/node_modules/underscore/cjs/_tagTester.js +11 -0
  566. package/node_modules/underscore/cjs/_toBufferView.js +13 -0
  567. package/node_modules/underscore/cjs/_toPath.js +10 -0
  568. package/node_modules/underscore/cjs/_unescapeMap.js +7 -0
  569. package/node_modules/underscore/cjs/after.js +10 -0
  570. package/node_modules/underscore/cjs/allKeys.js +15 -0
  571. package/node_modules/underscore/cjs/before.js +14 -0
  572. package/node_modules/underscore/cjs/bind.js +15 -0
  573. package/node_modules/underscore/cjs/bindAll.js +19 -0
  574. package/node_modules/underscore/cjs/chain.js +10 -0
  575. package/node_modules/underscore/cjs/chunk.js +15 -0
  576. package/node_modules/underscore/cjs/clone.js +11 -0
  577. package/node_modules/underscore/cjs/compact.js +8 -0
  578. package/node_modules/underscore/cjs/compose.js +14 -0
  579. package/node_modules/underscore/cjs/constant.js +8 -0
  580. package/node_modules/underscore/cjs/contains.js +12 -0
  581. package/node_modules/underscore/cjs/countBy.js +11 -0
  582. package/node_modules/underscore/cjs/create.js +13 -0
  583. package/node_modules/underscore/cjs/debounce.js +42 -0
  584. package/node_modules/underscore/cjs/defaults.js +7 -0
  585. package/node_modules/underscore/cjs/defer.js +9 -0
  586. package/node_modules/underscore/cjs/delay.js +11 -0
  587. package/node_modules/underscore/cjs/difference.js +15 -0
  588. package/node_modules/underscore/cjs/each.js +25 -0
  589. package/node_modules/underscore/cjs/escape.js +7 -0
  590. package/node_modules/underscore/cjs/every.js +17 -0
  591. package/node_modules/underscore/cjs/extend.js +7 -0
  592. package/node_modules/underscore/cjs/extendOwn.js +9 -0
  593. package/node_modules/underscore/cjs/filter.js +14 -0
  594. package/node_modules/underscore/cjs/find.js +12 -0
  595. package/node_modules/underscore/cjs/findIndex.js +6 -0
  596. package/node_modules/underscore/cjs/findKey.js +14 -0
  597. package/node_modules/underscore/cjs/findLastIndex.js +6 -0
  598. package/node_modules/underscore/cjs/findWhere.js +10 -0
  599. package/node_modules/underscore/cjs/first.js +11 -0
  600. package/node_modules/underscore/cjs/flatten.js +9 -0
  601. package/node_modules/underscore/cjs/functions.js +12 -0
  602. package/node_modules/underscore/cjs/get.js +14 -0
  603. package/node_modules/underscore/cjs/groupBy.js +10 -0
  604. package/node_modules/underscore/cjs/has.js +18 -0
  605. package/node_modules/underscore/cjs/identity.js +6 -0
  606. package/node_modules/underscore/cjs/index-default.js +11 -0
  607. package/node_modules/underscore/cjs/index.js +278 -0
  608. package/node_modules/underscore/cjs/indexBy.js +9 -0
  609. package/node_modules/underscore/cjs/indexOf.js +11 -0
  610. package/node_modules/underscore/cjs/initial.js +10 -0
  611. package/node_modules/underscore/cjs/intersection.js +21 -0
  612. package/node_modules/underscore/cjs/invert.js +13 -0
  613. package/node_modules/underscore/cjs/invoke.js +30 -0
  614. package/node_modules/underscore/cjs/isArguments.js +18 -0
  615. package/node_modules/underscore/cjs/isArray.js +8 -0
  616. package/node_modules/underscore/cjs/isArrayBuffer.js +5 -0
  617. package/node_modules/underscore/cjs/isBoolean.js +8 -0
  618. package/node_modules/underscore/cjs/isDataView.js +18 -0
  619. package/node_modules/underscore/cjs/isDate.js +5 -0
  620. package/node_modules/underscore/cjs/isElement.js +6 -0
  621. package/node_modules/underscore/cjs/isEmpty.js +20 -0
  622. package/node_modules/underscore/cjs/isEqual.js +140 -0
  623. package/node_modules/underscore/cjs/isError.js +5 -0
  624. package/node_modules/underscore/cjs/isFinite.js +9 -0
  625. package/node_modules/underscore/cjs/isFunction.js +17 -0
  626. package/node_modules/underscore/cjs/isMap.js +7 -0
  627. package/node_modules/underscore/cjs/isMatch.js +15 -0
  628. package/node_modules/underscore/cjs/isNaN.js +9 -0
  629. package/node_modules/underscore/cjs/isNull.js +6 -0
  630. package/node_modules/underscore/cjs/isNumber.js +5 -0
  631. package/node_modules/underscore/cjs/isObject.js +7 -0
  632. package/node_modules/underscore/cjs/isRegExp.js +5 -0
  633. package/node_modules/underscore/cjs/isSet.js +7 -0
  634. package/node_modules/underscore/cjs/isString.js +5 -0
  635. package/node_modules/underscore/cjs/isSymbol.js +5 -0
  636. package/node_modules/underscore/cjs/isTypedArray.js +17 -0
  637. package/node_modules/underscore/cjs/isUndefined.js +6 -0
  638. package/node_modules/underscore/cjs/isWeakMap.js +7 -0
  639. package/node_modules/underscore/cjs/isWeakSet.js +5 -0
  640. package/node_modules/underscore/cjs/iteratee.js +12 -0
  641. package/node_modules/underscore/cjs/keys.js +18 -0
  642. package/node_modules/underscore/cjs/last.js +11 -0
  643. package/node_modules/underscore/cjs/lastIndexOf.js +8 -0
  644. package/node_modules/underscore/cjs/map.js +18 -0
  645. package/node_modules/underscore/cjs/mapObject.js +18 -0
  646. package/node_modules/underscore/cjs/matcher.js +13 -0
  647. package/node_modules/underscore/cjs/max.js +31 -0
  648. package/node_modules/underscore/cjs/memoize.js +15 -0
  649. package/node_modules/underscore/cjs/min.js +31 -0
  650. package/node_modules/underscore/cjs/mixin.js +20 -0
  651. package/node_modules/underscore/cjs/negate.js +8 -0
  652. package/node_modules/underscore/cjs/noop.js +4 -0
  653. package/node_modules/underscore/cjs/now.js +6 -0
  654. package/node_modules/underscore/cjs/object.js +18 -0
  655. package/node_modules/underscore/cjs/omit.js +24 -0
  656. package/node_modules/underscore/cjs/once.js +8 -0
  657. package/node_modules/underscore/cjs/pairs.js +15 -0
  658. package/node_modules/underscore/cjs/partial.js +25 -0
  659. package/node_modules/underscore/cjs/partition.js +9 -0
  660. package/node_modules/underscore/cjs/pick.js +28 -0
  661. package/node_modules/underscore/cjs/pipe.js +12 -0
  662. package/node_modules/underscore/cjs/pluck.js +9 -0
  663. package/node_modules/underscore/cjs/property.js +13 -0
  664. package/node_modules/underscore/cjs/propertyOf.js +12 -0
  665. package/node_modules/underscore/cjs/random.js +10 -0
  666. package/node_modules/underscore/cjs/range.js +23 -0
  667. package/node_modules/underscore/cjs/reduce.js +7 -0
  668. package/node_modules/underscore/cjs/reduceRight.js +6 -0
  669. package/node_modules/underscore/cjs/reject.js +10 -0
  670. package/node_modules/underscore/cjs/rest.js +10 -0
  671. package/node_modules/underscore/cjs/restArguments.js +29 -0
  672. package/node_modules/underscore/cjs/result.js +24 -0
  673. package/node_modules/underscore/cjs/sample.js +29 -0
  674. package/node_modules/underscore/cjs/shuffle.js +8 -0
  675. package/node_modules/underscore/cjs/size.js +10 -0
  676. package/node_modules/underscore/cjs/some.js +17 -0
  677. package/node_modules/underscore/cjs/sortBy.js +26 -0
  678. package/node_modules/underscore/cjs/sortedIndex.js +17 -0
  679. package/node_modules/underscore/cjs/tap.js +9 -0
  680. package/node_modules/underscore/cjs/template.js +103 -0
  681. package/node_modules/underscore/cjs/templateSettings.js +11 -0
  682. package/node_modules/underscore/cjs/throttle.js +49 -0
  683. package/node_modules/underscore/cjs/times.js +11 -0
  684. package/node_modules/underscore/cjs/toArray.js +22 -0
  685. package/node_modules/underscore/cjs/toPath.js +11 -0
  686. package/node_modules/underscore/cjs/underscore-array-methods.js +31 -0
  687. package/node_modules/underscore/cjs/underscore.js +27 -0
  688. package/node_modules/underscore/cjs/unescape.js +7 -0
  689. package/node_modules/underscore/cjs/union.js +11 -0
  690. package/node_modules/underscore/cjs/uniq.js +38 -0
  691. package/node_modules/underscore/cjs/uniqueId.js +9 -0
  692. package/node_modules/underscore/cjs/unzip.js +17 -0
  693. package/node_modules/underscore/cjs/values.js +14 -0
  694. package/node_modules/underscore/cjs/where.js +10 -0
  695. package/node_modules/underscore/cjs/without.js +9 -0
  696. package/node_modules/underscore/cjs/wrap.js +10 -0
  697. package/node_modules/underscore/cjs/zip.js +8 -0
  698. package/node_modules/underscore/modules/.eslintrc +21 -0
  699. package/node_modules/underscore/modules/_baseCreate.js +18 -0
  700. package/node_modules/underscore/modules/_baseIteratee.js +17 -0
  701. package/node_modules/underscore/modules/_cb.js +10 -0
  702. package/node_modules/underscore/modules/_chainResult.js +6 -0
  703. package/node_modules/underscore/modules/_collectNonEnumProps.js +40 -0
  704. package/node_modules/underscore/modules/_createAssigner.js +18 -0
  705. package/node_modules/underscore/modules/_createEscaper.js +17 -0
  706. package/node_modules/underscore/modules/_createIndexFinder.js +28 -0
  707. package/node_modules/underscore/modules/_createPredicateIndexFinder.js +15 -0
  708. package/node_modules/underscore/modules/_createReduce.js +28 -0
  709. package/node_modules/underscore/modules/_createSizePropertyCheck.js +9 -0
  710. package/node_modules/underscore/modules/_deepGet.js +9 -0
  711. package/node_modules/underscore/modules/_escapeMap.js +9 -0
  712. package/node_modules/underscore/modules/_executeBound.js +13 -0
  713. package/node_modules/underscore/modules/_flatten.js +33 -0
  714. package/node_modules/underscore/modules/_getByteLength.js +4 -0
  715. package/node_modules/underscore/modules/_getLength.js +4 -0
  716. package/node_modules/underscore/modules/_group.js +15 -0
  717. package/node_modules/underscore/modules/_has.js +6 -0
  718. package/node_modules/underscore/modules/_hasObjectTag.js +3 -0
  719. package/node_modules/underscore/modules/_isArrayLike.js +8 -0
  720. package/node_modules/underscore/modules/_isBufferLike.js +6 -0
  721. package/node_modules/underscore/modules/_keyInObj.js +5 -0
  722. package/node_modules/underscore/modules/_methodFingerprint.js +37 -0
  723. package/node_modules/underscore/modules/_optimizeCb.js +21 -0
  724. package/node_modules/underscore/modules/_setup.js +43 -0
  725. package/node_modules/underscore/modules/_shallowProperty.js +6 -0
  726. package/node_modules/underscore/modules/_stringTagBug.js +13 -0
  727. package/node_modules/underscore/modules/_tagTester.js +9 -0
  728. package/node_modules/underscore/modules/_toBufferView.js +11 -0
  729. package/node_modules/underscore/modules/_toPath.js +8 -0
  730. package/node_modules/underscore/modules/_unescapeMap.js +5 -0
  731. package/node_modules/underscore/modules/after.js +8 -0
  732. package/node_modules/underscore/modules/allKeys.js +13 -0
  733. package/node_modules/underscore/modules/before.js +12 -0
  734. package/node_modules/underscore/modules/bind.js +13 -0
  735. package/node_modules/underscore/modules/bindAll.js +17 -0
  736. package/node_modules/underscore/modules/chain.js +8 -0
  737. package/node_modules/underscore/modules/chunk.js +13 -0
  738. package/node_modules/underscore/modules/clone.js +9 -0
  739. package/node_modules/underscore/modules/compact.js +6 -0
  740. package/node_modules/underscore/modules/compose.js +12 -0
  741. package/node_modules/underscore/modules/constant.js +6 -0
  742. package/node_modules/underscore/modules/contains.js +10 -0
  743. package/node_modules/underscore/modules/countBy.js +9 -0
  744. package/node_modules/underscore/modules/create.js +11 -0
  745. package/node_modules/underscore/modules/debounce.js +40 -0
  746. package/node_modules/underscore/modules/defaults.js +5 -0
  747. package/node_modules/underscore/modules/defer.js +7 -0
  748. package/node_modules/underscore/modules/delay.js +9 -0
  749. package/node_modules/underscore/modules/difference.js +13 -0
  750. package/node_modules/underscore/modules/each.js +23 -0
  751. package/node_modules/underscore/modules/escape.js +5 -0
  752. package/node_modules/underscore/modules/every.js +15 -0
  753. package/node_modules/underscore/modules/extend.js +5 -0
  754. package/node_modules/underscore/modules/extendOwn.js +7 -0
  755. package/node_modules/underscore/modules/filter.js +12 -0
  756. package/node_modules/underscore/modules/find.js +10 -0
  757. package/node_modules/underscore/modules/findIndex.js +4 -0
  758. package/node_modules/underscore/modules/findKey.js +12 -0
  759. package/node_modules/underscore/modules/findLastIndex.js +4 -0
  760. package/node_modules/underscore/modules/findWhere.js +8 -0
  761. package/node_modules/underscore/modules/first.js +9 -0
  762. package/node_modules/underscore/modules/flatten.js +7 -0
  763. package/node_modules/underscore/modules/functions.js +10 -0
  764. package/node_modules/underscore/modules/get.js +12 -0
  765. package/node_modules/underscore/modules/groupBy.js +8 -0
  766. package/node_modules/underscore/modules/has.js +16 -0
  767. package/node_modules/underscore/modules/identity.js +4 -0
  768. package/node_modules/underscore/modules/index-all.js +18 -0
  769. package/node_modules/underscore/modules/index-default.js +27 -0
  770. package/node_modules/underscore/modules/index.js +200 -0
  771. package/node_modules/underscore/modules/indexBy.js +7 -0
  772. package/node_modules/underscore/modules/indexOf.js +9 -0
  773. package/node_modules/underscore/modules/initial.js +8 -0
  774. package/node_modules/underscore/modules/intersection.js +19 -0
  775. package/node_modules/underscore/modules/invert.js +11 -0
  776. package/node_modules/underscore/modules/invoke.js +28 -0
  777. package/node_modules/underscore/modules/isArguments.js +16 -0
  778. package/node_modules/underscore/modules/isArray.js +6 -0
  779. package/node_modules/underscore/modules/isArrayBuffer.js +3 -0
  780. package/node_modules/underscore/modules/isBoolean.js +6 -0
  781. package/node_modules/underscore/modules/isDataView.js +16 -0
  782. package/node_modules/underscore/modules/isDate.js +3 -0
  783. package/node_modules/underscore/modules/isElement.js +4 -0
  784. package/node_modules/underscore/modules/isEmpty.js +18 -0
  785. package/node_modules/underscore/modules/isEqual.js +153 -0
  786. package/node_modules/underscore/modules/isError.js +3 -0
  787. package/node_modules/underscore/modules/isFinite.js +7 -0
  788. package/node_modules/underscore/modules/isFunction.js +15 -0
  789. package/node_modules/underscore/modules/isMap.js +5 -0
  790. package/node_modules/underscore/modules/isMatch.js +13 -0
  791. package/node_modules/underscore/modules/isNaN.js +7 -0
  792. package/node_modules/underscore/modules/isNull.js +4 -0
  793. package/node_modules/underscore/modules/isNumber.js +3 -0
  794. package/node_modules/underscore/modules/isObject.js +5 -0
  795. package/node_modules/underscore/modules/isRegExp.js +3 -0
  796. package/node_modules/underscore/modules/isSet.js +5 -0
  797. package/node_modules/underscore/modules/isString.js +3 -0
  798. package/node_modules/underscore/modules/isSymbol.js +3 -0
  799. package/node_modules/underscore/modules/isTypedArray.js +15 -0
  800. package/node_modules/underscore/modules/isUndefined.js +4 -0
  801. package/node_modules/underscore/modules/isWeakMap.js +5 -0
  802. package/node_modules/underscore/modules/isWeakSet.js +3 -0
  803. package/node_modules/underscore/modules/iteratee.js +10 -0
  804. package/node_modules/underscore/modules/keys.js +16 -0
  805. package/node_modules/underscore/modules/last.js +9 -0
  806. package/node_modules/underscore/modules/lastIndexOf.js +6 -0
  807. package/node_modules/underscore/modules/map.js +16 -0
  808. package/node_modules/underscore/modules/mapObject.js +16 -0
  809. package/node_modules/underscore/modules/matcher.js +11 -0
  810. package/node_modules/underscore/modules/max.js +29 -0
  811. package/node_modules/underscore/modules/memoize.js +13 -0
  812. package/node_modules/underscore/modules/min.js +29 -0
  813. package/node_modules/underscore/modules/mixin.js +18 -0
  814. package/node_modules/underscore/modules/negate.js +6 -0
  815. package/node_modules/underscore/modules/noop.js +2 -0
  816. package/node_modules/underscore/modules/now.js +4 -0
  817. package/node_modules/underscore/modules/object.js +16 -0
  818. package/node_modules/underscore/modules/omit.js +22 -0
  819. package/node_modules/underscore/modules/once.js +6 -0
  820. package/node_modules/underscore/modules/package.json +1 -0
  821. package/node_modules/underscore/modules/pairs.js +13 -0
  822. package/node_modules/underscore/modules/partial.js +24 -0
  823. package/node_modules/underscore/modules/partition.js +7 -0
  824. package/node_modules/underscore/modules/pick.js +26 -0
  825. package/node_modules/underscore/modules/pluck.js +7 -0
  826. package/node_modules/underscore/modules/property.js +11 -0
  827. package/node_modules/underscore/modules/propertyOf.js +10 -0
  828. package/node_modules/underscore/modules/random.js +8 -0
  829. package/node_modules/underscore/modules/range.js +21 -0
  830. package/node_modules/underscore/modules/reduce.js +5 -0
  831. package/node_modules/underscore/modules/reduceRight.js +4 -0
  832. package/node_modules/underscore/modules/reject.js +8 -0
  833. package/node_modules/underscore/modules/rest.js +8 -0
  834. package/node_modules/underscore/modules/restArguments.js +27 -0
  835. package/node_modules/underscore/modules/result.js +22 -0
  836. package/node_modules/underscore/modules/sample.js +27 -0
  837. package/node_modules/underscore/modules/shuffle.js +6 -0
  838. package/node_modules/underscore/modules/size.js +8 -0
  839. package/node_modules/underscore/modules/some.js +15 -0
  840. package/node_modules/underscore/modules/sortBy.js +24 -0
  841. package/node_modules/underscore/modules/sortedIndex.js +15 -0
  842. package/node_modules/underscore/modules/tap.js +7 -0
  843. package/node_modules/underscore/modules/template.js +101 -0
  844. package/node_modules/underscore/modules/templateSettings.js +9 -0
  845. package/node_modules/underscore/modules/throttle.js +47 -0
  846. package/node_modules/underscore/modules/times.js +9 -0
  847. package/node_modules/underscore/modules/toArray.js +20 -0
  848. package/node_modules/underscore/modules/toPath.js +9 -0
  849. package/node_modules/underscore/modules/underscore-array-methods.js +31 -0
  850. package/node_modules/underscore/modules/underscore.js +25 -0
  851. package/node_modules/underscore/modules/unescape.js +5 -0
  852. package/node_modules/underscore/modules/union.js +9 -0
  853. package/node_modules/underscore/modules/uniq.js +36 -0
  854. package/node_modules/underscore/modules/uniqueId.js +7 -0
  855. package/node_modules/underscore/modules/unzip.js +15 -0
  856. package/node_modules/underscore/modules/values.js +12 -0
  857. package/node_modules/underscore/modules/where.js +8 -0
  858. package/node_modules/underscore/modules/without.js +7 -0
  859. package/node_modules/underscore/modules/wrap.js +8 -0
  860. package/node_modules/underscore/modules/zip.js +6 -0
  861. package/node_modules/underscore/package.json +124 -0
  862. package/node_modules/underscore/underscore-esm-min.js +5 -0
  863. package/node_modules/underscore/underscore-esm-min.js.map +1 -0
  864. package/node_modules/underscore/underscore-esm.js +2056 -0
  865. package/node_modules/underscore/underscore-esm.js.map +1 -0
  866. package/node_modules/underscore/underscore-min.js +6 -0
  867. package/node_modules/underscore/underscore-min.js.map +1 -0
  868. package/node_modules/underscore/underscore-node-f.cjs +2180 -0
  869. package/node_modules/underscore/underscore-node-f.cjs.map +1 -0
  870. package/node_modules/underscore/underscore-node.cjs +11 -0
  871. package/node_modules/underscore/underscore-node.cjs.map +1 -0
  872. package/node_modules/underscore/underscore-node.mjs +7 -0
  873. package/node_modules/underscore/underscore-node.mjs.map +1 -0
  874. package/node_modules/underscore/underscore-umd-min.js +6 -0
  875. package/node_modules/underscore/underscore-umd-min.js.map +1 -0
  876. package/node_modules/underscore/underscore-umd.js +2064 -0
  877. package/node_modules/underscore/underscore-umd.js.map +1 -0
  878. package/node_modules/underscore/underscore.js +2064 -0
  879. package/node_modules/util-deprecate/History.md +16 -0
  880. package/node_modules/util-deprecate/LICENSE +24 -0
  881. package/node_modules/util-deprecate/README.md +53 -0
  882. package/node_modules/util-deprecate/browser.js +67 -0
  883. package/node_modules/util-deprecate/node.js +6 -0
  884. package/node_modules/util-deprecate/package.json +27 -0
  885. package/node_modules/xmlbuilder/CHANGELOG.md +438 -0
  886. package/node_modules/xmlbuilder/LICENSE +21 -0
  887. package/node_modules/xmlbuilder/README.md +86 -0
  888. package/node_modules/xmlbuilder/appveyor.yml +20 -0
  889. package/node_modules/xmlbuilder/lib/Utility.js +83 -0
  890. package/node_modules/xmlbuilder/lib/XMLAttribute.js +41 -0
  891. package/node_modules/xmlbuilder/lib/XMLCData.js +32 -0
  892. package/node_modules/xmlbuilder/lib/XMLComment.js +32 -0
  893. package/node_modules/xmlbuilder/lib/XMLDTDAttList.js +50 -0
  894. package/node_modules/xmlbuilder/lib/XMLDTDElement.js +35 -0
  895. package/node_modules/xmlbuilder/lib/XMLDTDEntity.js +56 -0
  896. package/node_modules/xmlbuilder/lib/XMLDTDNotation.js +37 -0
  897. package/node_modules/xmlbuilder/lib/XMLDeclaration.js +40 -0
  898. package/node_modules/xmlbuilder/lib/XMLDocType.js +108 -0
  899. package/node_modules/xmlbuilder/lib/XMLDocument.js +49 -0
  900. package/node_modules/xmlbuilder/lib/XMLDocumentCB.js +414 -0
  901. package/node_modules/xmlbuilder/lib/XMLDummy.js +29 -0
  902. package/node_modules/xmlbuilder/lib/XMLElement.js +111 -0
  903. package/node_modules/xmlbuilder/lib/XMLNode.js +467 -0
  904. package/node_modules/xmlbuilder/lib/XMLProcessingInstruction.js +35 -0
  905. package/node_modules/xmlbuilder/lib/XMLRaw.js +32 -0
  906. package/node_modules/xmlbuilder/lib/XMLStreamWriter.js +287 -0
  907. package/node_modules/xmlbuilder/lib/XMLStringWriter.js +341 -0
  908. package/node_modules/xmlbuilder/lib/XMLStringifier.js +163 -0
  909. package/node_modules/xmlbuilder/lib/XMLText.js +32 -0
  910. package/node_modules/xmlbuilder/lib/XMLWriterBase.js +90 -0
  911. package/node_modules/xmlbuilder/lib/index.js +53 -0
  912. package/node_modules/xmlbuilder/package.json +37 -0
  913. package/package.json +18 -7
  914. package/schemas/tool-definition.schema.json +13 -0
  915. package/scripts/check-doc-links.mjs +6 -0
  916. package/scripts/check-image-tags.sh +1 -1
  917. package/scripts/check-package-artifact.mjs +19 -0
  918. package/scripts/check-release-consistency.test.mjs +2 -2
  919. package/scripts/dependency-audit.mjs +49 -96
  920. package/scripts/dependency-audit.test.mjs +70 -106
  921. package/scripts/doctor-upgrade-plan.test.ts +205 -0
  922. package/scripts/doctor-upgrade-plan.ts +276 -0
  923. package/scripts/doctor.ts +4 -1
  924. package/scripts/docx-browser-test.mjs +56 -0
  925. package/scripts/docx-compatibility.test.mjs +39 -0
  926. package/scripts/docx-fixtures.mjs +19 -0
  927. package/scripts/e2e-console-approval-details.mjs +134 -0
  928. package/scripts/e2e-console-config-races.mjs +180 -0
  929. package/scripts/e2e-console-kb-audit.mjs +170 -0
  930. package/scripts/e2e-console-operations-audit.mjs +152 -0
  931. package/scripts/e2e-console-runtime-audit.mjs +179 -0
  932. package/scripts/e2e-console-settings-audit.mjs +125 -0
  933. package/scripts/e2e-console-troubleshooting-extra.mjs +267 -0
  934. package/scripts/e2e-console.mjs +476 -7
  935. package/scripts/export-oss.mjs +3 -0
  936. package/scripts/generate-third-party-notices.mjs +6 -2
  937. package/scripts/install.sh +1 -1
  938. package/scripts/notification-console-test.mjs +172 -0
  939. package/scripts/oss-boundary-check.mjs +3 -1
  940. package/scripts/publish-images.sh +1 -1
  941. package/scripts/release-audit.mjs +9 -1
  942. package/scripts/vendor-mammoth.mjs +130 -0
  943. package/scripts/verify-github-repo.mjs +8 -0
  944. package/scripts/verify-oss-export.mjs +3 -0
  945. package/sql/068_notification_outbox.sql +28 -0
  946. package/sql/README.en.md +8 -0
  947. package/sql/README.md +8 -0
  948. package/src/app/agent-client-runtime.test.ts +115 -2
  949. package/src/app/agent-client-runtime.ts +40 -11
  950. package/src/app/agent-knowledge.test.ts +171 -0
  951. package/src/app/agent-knowledge.ts +233 -0
  952. package/src/app/agent-tool-catalog-revision.test.ts +31 -0
  953. package/src/app/agent-tool-invocations.test.ts +7 -2
  954. package/src/app/agent-tool-invocations.ts +67 -7
  955. package/src/app/approval-continuations.mysql.test.ts +1 -1
  956. package/src/app/approval-continuations.test.ts +49 -1
  957. package/src/app/delivery-dlq-replay.mysql.test.ts +2 -2
  958. package/src/app/delivery.ts +115 -1
  959. package/src/app/engine.ts +5 -4
  960. package/src/app/http.test.ts +16 -1
  961. package/src/app/http.ts +3 -3
  962. package/src/app/kernel-boot-recovery.mysql.test.ts +132 -0
  963. package/src/app/kernel-boot-recovery.test.ts +157 -0
  964. package/src/app/kernel-usage-lifecycle.mysql.test.ts +1 -1
  965. package/src/app/kernel.ts +20 -8
  966. package/src/app/notification-outbox.test.ts +321 -0
  967. package/src/app/notification-outbox.ts +123 -0
  968. package/src/app/operational-metrics.test.ts +15 -0
  969. package/src/app/operational-metrics.ts +9 -0
  970. package/src/app/outbound.ts +28 -0
  971. package/src/app/readiness.mysql.test.ts +120 -0
  972. package/src/app/readiness.test.ts +111 -26
  973. package/src/app/readiness.ts +26 -22
  974. package/src/app/runtime-evidence-maintenance.test.ts +34 -1
  975. package/src/app/runtime-lifecycle-default.ts +7 -0
  976. package/src/app/runtime-lifecycle.ts +42 -3
  977. package/src/app/tool-approvals.test.ts +83 -0
  978. package/src/app/tool-approvals.ts +89 -34
  979. package/src/app/tool-proxy-payload.test.ts +81 -0
  980. package/src/app/tool-proxy.ts +24 -2
  981. package/src/core/config/console-diagnostic-location.test.ts +36 -0
  982. package/src/core/config/console-form-guard.test.ts +69 -0
  983. package/src/core/config/console-task-location.test.ts +64 -0
  984. package/src/core/contracts/delivery-replay.ts +1 -0
  985. package/src/core/contracts/notification-outbox.ts +54 -0
  986. package/src/core/contracts/openapi-tools.ts +16 -5
  987. package/src/core/contracts/schema-readiness.ts +11 -0
  988. package/src/core/contracts/tool-definition.ts +26 -0
  989. package/src/core/contracts/tool-guidance.test.ts +77 -0
  990. package/src/core/contracts/tool-guidance.ts +31 -0
  991. package/src/core/contracts/tool-input-limits.ts +15 -0
  992. package/src/core/contracts/tools-idempotency.test.ts +90 -0
  993. package/src/core/contracts/tools.ts +52 -9
  994. package/src/core/observability/openmetrics.test.ts +18 -0
  995. package/src/core/observability/openmetrics.ts +17 -0
  996. package/src/core/runtime/agent-execution-memory.test.ts +64 -0
  997. package/src/core/runtime/agent-execution-memory.ts +63 -0
  998. package/src/core/runtime/finish-runtime.test.ts +20 -0
  999. package/src/core/runtime/finish-runtime.ts +13 -5
  1000. package/src/core/runtime/inhub-runtime.ts +10 -2
  1001. package/src/core/runtime/notification-outbox-work.ts +15 -0
  1002. package/src/core/state/notification-outbox.ts +66 -0
  1003. package/src/core/state/state-contracts.ts +7 -0
  1004. package/src/infrastructure/config/config-approval-ledger.ts +23 -1
  1005. package/src/infrastructure/config/config-delivery-dlq-ledger.ts +26 -13
  1006. package/src/infrastructure/config/config-observability-ledger.ts +2 -0
  1007. package/src/infrastructure/config/configstore.ts +8 -4
  1008. package/src/infrastructure/schema/schema-readiness.ts +29 -0
  1009. package/src/infrastructure/state/notification-outbox-jsonl.ts +80 -0
  1010. package/src/infrastructure/state/notification-outbox-mysql.ts +100 -0
  1011. package/src/infrastructure/state/notification-outbox-storage.test.ts +325 -0
  1012. package/src/infrastructure/state/state-jsonl.ts +64 -13
  1013. package/src/infrastructure/state/state-mysql.ts +39 -5
  1014. package/src/modules/usage/contracts.ts +7 -0
  1015. package/src/modules/usage/http.ts +2 -0
  1016. package/src/modules/usage/model-continuation.test.ts +109 -0
  1017. package/src/modules/usage/model-gateway.ts +5 -1
  1018. package/src/modules/usage/output-budget.mysql.test.ts +84 -0
  1019. package/src/modules/usage/output-budget.test.ts +167 -0
  1020. package/src/modules/usage/output-budget.ts +73 -0
  1021. package/src/modules/usage/provider-stream.test.ts +22 -0
  1022. package/src/modules/usage/provider.ts +2 -3
  1023. package/src/modules/usage/repository.ts +6 -0
  1024. package/src/modules/usage/test-harness.ts +4 -2
  1025. package/src/routes/admin-approval-view.test.ts +109 -0
  1026. package/src/routes/admin-approval-view.ts +36 -0
  1027. package/src/routes/admin-notifications.test.ts +75 -0
  1028. package/src/routes/admin-notifications.ts +77 -0
  1029. package/src/routes/admin-readiness.test.ts +52 -0
  1030. package/src/routes/admin-runtime-ux.test.ts +51 -0
  1031. package/src/routes/admin-runtime-ux.ts +25 -0
  1032. package/src/routes/admin-runtime.test.ts +25 -0
  1033. package/src/routes/admin-runtime.ts +51 -8
  1034. package/src/routes/admin.ts +10 -0
  1035. package/src/routes/agent-api.test.ts +80 -1
  1036. package/src/routes/agent-api.ts +63 -4
  1037. package/src/routes/agent-tool-detail.test.ts +140 -0
  1038. package/src/routes/public-default.ts +1 -1
  1039. package/src/services/kb-agent.test.ts +84 -0
  1040. package/src/services/kb.ts +73 -0
  1041. package/src/test-support/notification-outbox-journal-crash-child.ts +20 -0
  1042. package/vendor/bailinghub-mammoth-library-1.12.0-bailinghub.1.tgz +0 -0
  1043. package/vendor/mammoth-library/LICENSE +22 -0
  1044. package/vendor/mammoth-library/SOURCE.json +57 -0
  1045. package/vendor/mammoth-library/browser/docx/files.js +14 -0
  1046. package/vendor/mammoth-library/browser/unzip.js +12 -0
  1047. package/vendor/mammoth-library/lib/document-to-html.js +469 -0
  1048. package/vendor/mammoth-library/lib/documents.js +254 -0
  1049. package/vendor/mammoth-library/lib/docx/body-reader.js +798 -0
  1050. package/vendor/mammoth-library/lib/docx/comments-reader.js +31 -0
  1051. package/vendor/mammoth-library/lib/docx/content-types-reader.js +58 -0
  1052. package/vendor/mammoth-library/lib/docx/document-xml-reader.js +30 -0
  1053. package/vendor/mammoth-library/lib/docx/docx-reader.js +226 -0
  1054. package/vendor/mammoth-library/lib/docx/files.js +80 -0
  1055. package/vendor/mammoth-library/lib/docx/notes-reader.js +28 -0
  1056. package/vendor/mammoth-library/lib/docx/numbering-xml.js +111 -0
  1057. package/vendor/mammoth-library/lib/docx/office-xml-reader.js +73 -0
  1058. package/vendor/mammoth-library/lib/docx/relationships-reader.js +43 -0
  1059. package/vendor/mammoth-library/lib/docx/style-map.js +75 -0
  1060. package/vendor/mammoth-library/lib/docx/styles-reader.js +90 -0
  1061. package/vendor/mammoth-library/lib/docx/uris.js +21 -0
  1062. package/vendor/mammoth-library/lib/html/ast.js +51 -0
  1063. package/vendor/mammoth-library/lib/html/index.js +41 -0
  1064. package/vendor/mammoth-library/lib/html/simplify.js +88 -0
  1065. package/vendor/mammoth-library/lib/images.js +31 -0
  1066. package/vendor/mammoth-library/lib/index.d.ts +86 -0
  1067. package/vendor/mammoth-library/lib/index.js +111 -0
  1068. package/vendor/mammoth-library/lib/options-reader.js +107 -0
  1069. package/vendor/mammoth-library/lib/promises.js +42 -0
  1070. package/vendor/mammoth-library/lib/raw-text.js +14 -0
  1071. package/vendor/mammoth-library/lib/results.js +72 -0
  1072. package/vendor/mammoth-library/lib/style-reader.js +365 -0
  1073. package/vendor/mammoth-library/lib/styles/document-matchers.js +100 -0
  1074. package/vendor/mammoth-library/lib/styles/html-paths.js +75 -0
  1075. package/vendor/mammoth-library/lib/styles/parser/tokeniser.js +30 -0
  1076. package/vendor/mammoth-library/lib/transforms.js +62 -0
  1077. package/vendor/mammoth-library/lib/underline.js +11 -0
  1078. package/vendor/mammoth-library/lib/unzip.js +20 -0
  1079. package/vendor/mammoth-library/lib/writers/html-writer.js +159 -0
  1080. package/vendor/mammoth-library/lib/writers/index.js +14 -0
  1081. package/vendor/mammoth-library/lib/writers/markdown-writer.js +163 -0
  1082. package/vendor/mammoth-library/lib/xml/index.js +8 -0
  1083. package/vendor/mammoth-library/lib/xml/nodes.js +70 -0
  1084. package/vendor/mammoth-library/lib/xml/reader.js +69 -0
  1085. package/vendor/mammoth-library/lib/xml/writer.js +61 -0
  1086. package/vendor/mammoth-library/lib/xml/xmldom.js +23 -0
  1087. package/vendor/mammoth-library/lib/zipfile.js +72 -0
  1088. package/vendor/mammoth-library/package.json +39 -0
  1089. package/vendor/mammoth-library/upstream-package.json +64 -0
  1090. package/vendor/mammoth-library-distribution.json +4 -0
  1091. package/web/console/assets/Accounts-CjIBO3sU.css +1 -0
  1092. package/web/console/assets/Accounts-Dhyw-7wF.js +3 -0
  1093. package/web/console/assets/AgentClients-BA0M26-I.css +1 -0
  1094. package/web/console/assets/AgentClients-DWxb8-ko.js +1 -0
  1095. package/web/console/assets/AgentTasks-DOyxANnx.css +1 -0
  1096. package/web/console/assets/AgentTasks-DUHD4dzr.js +2 -0
  1097. package/web/console/assets/Approvals-Brl-2uJq.css +1 -0
  1098. package/web/console/assets/Approvals-CQx1YWxW.js +1 -0
  1099. package/web/console/assets/Audit--QcdVlMh.js +1 -0
  1100. package/web/console/assets/Audit-DAdmOnIs.css +1 -0
  1101. package/web/console/assets/{BrandLockup-BgASiRSE.js → BrandLockup-DQcaW4Nt.js} +1 -1
  1102. package/web/console/assets/Channels-DJJU3ksE.css +1 -0
  1103. package/web/console/assets/Channels-cGS5WfQ-.js +105 -0
  1104. package/web/console/assets/ChatEntries-BYpji27B.css +1 -0
  1105. package/web/console/assets/ChatEntries-nh23Iz5O.js +7 -0
  1106. package/web/console/assets/Clients-CX5EeYio.js +3 -0
  1107. package/web/console/assets/Clients-CbZAou8E.css +1 -0
  1108. package/web/console/assets/Cost-C6oQvz9P.css +1 -0
  1109. package/web/console/assets/Cost-DOZfdNS9.js +1 -0
  1110. package/web/console/assets/Credentials--aHs57yV.css +1 -0
  1111. package/web/console/assets/Credentials-sy6W9Sac.js +1 -0
  1112. package/web/console/assets/Diagnostics-CKs27Dnv.css +1 -0
  1113. package/web/console/assets/Diagnostics-CyoM1XrZ.js +1 -0
  1114. package/web/console/assets/Executors-2Upi6bOS.css +1 -0
  1115. package/web/console/assets/Executors-BQqqiFwt.js +1 -0
  1116. package/web/console/assets/HelpTip-DLlhaGQp.js +1 -0
  1117. package/web/console/assets/HelpTip-bbDEyuqV.css +1 -0
  1118. package/web/console/assets/Kb-5R3ce4UU.js +5 -0
  1119. package/web/console/assets/Kb-BM_PYi11.css +1 -0
  1120. package/web/console/assets/{Login-DA6BASZd.js → Login-YKeUwdgo.js} +1 -1
  1121. package/web/console/assets/Projects-DHwHrPT9.css +1 -0
  1122. package/web/console/assets/Projects-Grgb6fOv.js +1 -0
  1123. package/web/console/assets/Routes-DR_Yf02e.css +1 -0
  1124. package/web/console/assets/Routes-DYgrXlRJ.js +138 -0
  1125. package/web/console/assets/Runs-CwTddJJj.js +3 -0
  1126. package/web/console/assets/Runs-D4FOvNfu.css +1 -0
  1127. package/web/console/assets/Setup-Ca0b1d1-.css +1 -0
  1128. package/web/console/assets/Setup-D_xUPNDq.js +1 -0
  1129. package/web/console/assets/Shell-BTg8Vw_L.css +1 -0
  1130. package/web/console/assets/Shell-Dfam2Uoj.js +1 -0
  1131. package/web/console/assets/StorageBuckets-7QLBpV4a.css +1 -0
  1132. package/web/console/assets/StorageBuckets-CP6e50wI.js +1 -0
  1133. package/web/console/assets/SystemSettings-BRYKyJNa.js +1 -0
  1134. package/web/console/assets/SystemSettings-HsXGx0aH.css +1 -0
  1135. package/web/console/assets/SystemStatus-B-VfRsQd.css +1 -0
  1136. package/web/console/assets/SystemStatus-CbPsDsGt.js +1 -0
  1137. package/web/console/assets/Targets-1j4-g6rC.css +1 -0
  1138. package/web/console/assets/Targets-C2LkR2AF.js +1 -0
  1139. package/web/console/assets/Tools-C9HPJqJb.css +1 -0
  1140. package/web/console/assets/Tools-C9JNJUS0.js +2 -0
  1141. package/web/console/assets/Usage-D1Mv6vGY.js +1 -0
  1142. package/web/console/assets/Usage-DMOzUsqh.css +1 -0
  1143. package/web/console/assets/UsageAccess-77LmGCm6.js +1 -0
  1144. package/web/console/assets/UsageAccess-C6ZGxEgJ.css +1 -0
  1145. package/web/console/assets/{UsageHelp-BBKIvbQ5.js → UsageHelp-BmuiE1Ew.js} +1 -1
  1146. package/web/console/assets/client-route-draft-DxZRxKPT.js +1 -0
  1147. package/web/console/assets/console-location-Csv-xsnl.js +1 -0
  1148. package/web/console/assets/form-guard-8GrFpry0.js +1 -0
  1149. package/web/console/assets/{index-65JiiUr4.js → index-B_5UfiTw.js} +1 -1
  1150. package/web/console/assets/index-MjZJEFIN.js +2 -0
  1151. package/web/console/assets/{request-BpaimqEb.js → request-rqm6MT0s.js} +1 -1
  1152. package/web/console/assets/runtime-feedback-gPfZVNvY.js +1 -0
  1153. package/web/console/assets/{schema-D0Z4kFCZ.js → schema-o3mK4mid.js} +1 -1
  1154. package/web/console/assets/task-page-location-DWiGtAln.js +1 -0
  1155. package/web/console/assets/use-list-location-FvLFt0Tq.css +1 -0
  1156. package/web/console/assets/use-list-location-cIPy2cKM.js +1 -0
  1157. package/web/console/assets/use-unsaved-form-DScKD0h9.js +1 -0
  1158. package/web/console/assets/{util-DZYfJ5Zo.js → util-B40VqOwl.js} +1 -1
  1159. package/web/console/assets/{vendor-element-8cVcdt5T.js → vendor-element-BT8tHCFk.js} +1 -1
  1160. package/web/console/assets/{vendor-mammoth-CnDA23N0.js → vendor-mammoth-CVIXVxTN.js} +1 -1
  1161. package/web/console/assets/{vendor-vue-Co7x2FW6.js → vendor-vue-DhbG0vd4.js} +7 -7
  1162. package/web/console/index.html +3 -3
  1163. package/web-admin/package-lock.json +9 -27
  1164. package/web-admin/package.json +2 -2
  1165. package/web-admin/src/client-route-draft.ts +25 -0
  1166. package/web-admin/src/components/AgentSetupPanel.vue +54 -41
  1167. package/web-admin/src/components/HelpTip.vue +4 -1
  1168. package/web-admin/src/components/ListLocationBar.vue +22 -0
  1169. package/web-admin/src/components/NotificationOutboxPanel.vue +134 -0
  1170. package/web-admin/src/console-entry.test.ts +26 -0
  1171. package/web-admin/src/console-entry.ts +20 -0
  1172. package/web-admin/src/console-location.ts +35 -0
  1173. package/web-admin/src/form-guard.ts +35 -0
  1174. package/web-admin/src/layout/Shell.vue +18 -65
  1175. package/web-admin/src/onboarding-state.test.ts +174 -0
  1176. package/web-admin/src/onboarding-state.ts +122 -0
  1177. package/web-admin/src/pages/Accounts.vue +44 -24
  1178. package/web-admin/src/pages/AgentClients.vue +47 -29
  1179. package/web-admin/src/pages/AgentTasks.vue +57 -12
  1180. package/web-admin/src/pages/Approvals.vue +105 -25
  1181. package/web-admin/src/pages/Audit.vue +15 -6
  1182. package/web-admin/src/pages/Channels.vue +136 -43
  1183. package/web-admin/src/pages/ChatEntries.vue +96 -41
  1184. package/web-admin/src/pages/Clients.vue +87 -26
  1185. package/web-admin/src/pages/Cost.vue +15 -4
  1186. package/web-admin/src/pages/Credentials.vue +63 -32
  1187. package/web-admin/src/pages/Diagnostics.vue +103 -54
  1188. package/web-admin/src/pages/Executors.vue +103 -40
  1189. package/web-admin/src/pages/Kb.vue +278 -128
  1190. package/web-admin/src/pages/Projects.vue +44 -16
  1191. package/web-admin/src/pages/Routes.vue +168 -247
  1192. package/web-admin/src/pages/Runs.vue +169 -91
  1193. package/web-admin/src/pages/Setup.vue +182 -291
  1194. package/web-admin/src/pages/StorageBuckets.vue +61 -25
  1195. package/web-admin/src/pages/SystemSettings.vue +76 -51
  1196. package/web-admin/src/pages/SystemStatus.vue +54 -30
  1197. package/web-admin/src/pages/Targets.vue +45 -17
  1198. package/web-admin/src/pages/Tools.vue +133 -68
  1199. package/web-admin/src/pages/Usage.vue +64 -25
  1200. package/web-admin/src/pages/UsageAccess.vue +11 -8
  1201. package/web-admin/src/route-call-snippets.test.ts +82 -0
  1202. package/web-admin/src/route-call-snippets.ts +178 -0
  1203. package/web-admin/src/router.ts +11 -29
  1204. package/web-admin/src/runtime-feedback.ts +43 -0
  1205. package/web-admin/src/task-page-location.ts +66 -0
  1206. package/web-admin/src/usage-output-budget.test.ts +26 -0
  1207. package/web-admin/src/usage-output-budget.ts +46 -0
  1208. package/web-admin/src/use-list-location.ts +24 -0
  1209. package/web-admin/src/use-unsaved-form.ts +38 -0
  1210. package/web-admin/tests/model-output-budget.browser.mjs +69 -0
  1211. package/security/dependency-audit-exceptions.json +0 -192
  1212. package/web/console/assets/Accounts-Bervi5JU.css +0 -1
  1213. package/web/console/assets/Accounts-DKhw_QLr.js +0 -3
  1214. package/web/console/assets/AgentClients-CM4_5HaA.js +0 -1
  1215. package/web/console/assets/AgentClients-i52AI6YV.css +0 -1
  1216. package/web/console/assets/AgentTasks-BsG850Il.css +0 -1
  1217. package/web/console/assets/AgentTasks-CkQgZTU5.js +0 -2
  1218. package/web/console/assets/Approvals-B9O9TkbO.js +0 -1
  1219. package/web/console/assets/Approvals-DlTSHl_7.css +0 -1
  1220. package/web/console/assets/Audit-2vDC1SPu.js +0 -1
  1221. package/web/console/assets/Audit-CSu6_3oD.css +0 -1
  1222. package/web/console/assets/Channels-A-GvkNBt.js +0 -105
  1223. package/web/console/assets/Channels-CCn0L1jg.css +0 -1
  1224. package/web/console/assets/ChatEntries-BLxymI67.js +0 -7
  1225. package/web/console/assets/ChatEntries-DsYtcXN6.css +0 -1
  1226. package/web/console/assets/Clients-CSHIsaWU.css +0 -1
  1227. package/web/console/assets/Clients-DeNlmvS6.js +0 -3
  1228. package/web/console/assets/Cost-CBq_L4Kz.js +0 -1
  1229. package/web/console/assets/Cost-CjT39DSZ.css +0 -1
  1230. package/web/console/assets/Credentials-DmtbctNj.js +0 -1
  1231. package/web/console/assets/Credentials-ioLP0qYN.css +0 -1
  1232. package/web/console/assets/Diagnostics-BbcRDiA-.js +0 -1
  1233. package/web/console/assets/Diagnostics-Ya05PTDp.css +0 -1
  1234. package/web/console/assets/Executors-CjhEM54c.css +0 -1
  1235. package/web/console/assets/Executors-gGgmQrDt.js +0 -1
  1236. package/web/console/assets/HelpTip-CA6Bm7Nx.css +0 -1
  1237. package/web/console/assets/HelpTip-Dtdt2tKR.js +0 -1
  1238. package/web/console/assets/Kb-CzIzd9xr.css +0 -1
  1239. package/web/console/assets/Kb-lgY6OXUz.js +0 -5
  1240. package/web/console/assets/Projects-Bm8AjsNx.css +0 -1
  1241. package/web/console/assets/Projects-DEbmB_sT.js +0 -1
  1242. package/web/console/assets/Routes-CyXV4Pba.css +0 -1
  1243. package/web/console/assets/Routes-qS6LLoyS.js +0 -124
  1244. package/web/console/assets/Runs-CvGTV8I-.css +0 -1
  1245. package/web/console/assets/Runs-DG-VLRSc.js +0 -3
  1246. package/web/console/assets/Setup-D7nxgn-9.css +0 -1
  1247. package/web/console/assets/Setup-DEpVF5uw.js +0 -1
  1248. package/web/console/assets/Shell-DgoPgK1E.js +0 -1
  1249. package/web/console/assets/Shell-ykb-tUfo.css +0 -1
  1250. package/web/console/assets/StorageBuckets-CVgpZRWY.css +0 -1
  1251. package/web/console/assets/StorageBuckets-DJtNN769.js +0 -1
  1252. package/web/console/assets/SystemSettings-0DEUgeTR.js +0 -1
  1253. package/web/console/assets/SystemSettings-BjiHyrXO.css +0 -1
  1254. package/web/console/assets/SystemStatus-CR1phiPE.js +0 -1
  1255. package/web/console/assets/SystemStatus-I11I67rw.css +0 -1
  1256. package/web/console/assets/Targets-D65l-IMB.js +0 -1
  1257. package/web/console/assets/Targets-DTb5tn6z.css +0 -1
  1258. package/web/console/assets/Tools-DU8ei6sd.css +0 -1
  1259. package/web/console/assets/Tools-DqtrINrN.js +0 -2
  1260. package/web/console/assets/Usage-B5njXNjx.js +0 -1
  1261. package/web/console/assets/Usage-CAeDGjrb.css +0 -1
  1262. package/web/console/assets/UsageAccess-CGGaWTuj.css +0 -1
  1263. package/web/console/assets/UsageAccess-ChnB4pjb.js +0 -1
  1264. package/web/console/assets/index-sLKrJd_p.js +0 -2
package/.dockerignore CHANGED
@@ -8,6 +8,7 @@ web-admin/node_modules/
8
8
  .oss-dist/
9
9
  .oss-publish/
10
10
  bailinghub-*.tgz
11
+ !vendor/bailinghub-mammoth-library-1.12.0-bailinghub.1.tgz
11
12
  *.bak.*
12
13
  *.bak.*/
13
14
  src.bak.*/
package/.gitignore CHANGED
@@ -12,6 +12,7 @@ data/
12
12
  .oss-dist/
13
13
  .oss-publish/
14
14
  bailinghub-*.tgz
15
+ !vendor/bailinghub-mammoth-library-1.12.0-bailinghub.1.tgz
15
16
  config.json
16
17
  .env
17
18
  .paused
package/.npmignore CHANGED
@@ -10,6 +10,7 @@ web-admin/node_modules/
10
10
  .oss-dist/
11
11
  .oss-publish/
12
12
  bailinghub-*.tgz
13
+ !vendor/bailinghub-mammoth-library-1.12.0-bailinghub.1.tgz
13
14
  *.bak.*
14
15
  *.bak.*/
15
16
  src.bak.*/
package/Dockerfile CHANGED
@@ -4,6 +4,7 @@ FROM ${NODE_IMAGE}
4
4
  WORKDIR /app
5
5
 
6
6
  COPY package*.json ./
7
+ COPY vendor/ ./vendor/
7
8
  RUN if [ -f package-lock.json ]; then npm ci; else npm install; fi
8
9
 
9
10
  COPY web-admin/package*.json ./web-admin/
package/README.en.md CHANGED
@@ -29,13 +29,13 @@ You choose which business APIs become available. BailingHub connects the convers
29
29
  <img src="assets/readme-product-overview.en.svg" width="100%" alt="BailingHub connects conversational entry points to governed business capabilities while the business system remains the authority">
30
30
  </picture>
31
31
 
32
- ## v0.9.3: bounded bodies and reliable notification shutdown
32
+ ## v0.10.0: On-demand knowledge and clearer setup and diagnostics
33
33
 
34
- Tool responses and remote attachments are bounded during reading. Oversized write responses retain the original unknown outcome without redispatch. Graceful close drains actual callbacks, notifications and DLQ writes. Executor dead letters replay only the original notification child, with permanent markers deduplicating admission for the same DLQ. New read-only metrics expose background maintenance.
34
+ Local agents can discover short hints, then read relevant knowledge and tool guidance only when needed. Existing clients and bundled chat retain their original context delivery. The console improves onboarding, invocation examples, unsaved-form protection, approval status and diagnostic return paths. Larger tool arguments use one bounded policy while preserving full approval arguments and original-call inspection.
35
35
 
36
- The component set is **Core 0.9.3 + MCP / Agent Client SDK 0.7.0 + DSH 0.7.0**. Explicitly apply **067** before new MySQL DLQ reads/writes; earlier upgrades also apply missing preceding migrations. Shared USD allowance, the unified multiplier and client orchestration remain unchanged. Notification drain covers graceful shutdown, without a full durable notification outbox. A release does not establish a deployment has upgraded.
36
+ The component set is **Core 0.10.0 + MCP / Agent Client SDK 0.8.0 + DSH 0.8.0**. Optional model policies separate default output budgets, service ceilings, provider parameters and reasoning-budget scope; old services are not reconfigured automatically. There is **no new SQL relative to 0.9.4**; earlier upgrades still apply outstanding historical migrations. Client hosts own their task loops and continuation; the Hub does not automatically repeat model or business operations.
37
37
 
38
- [Release notes](docs/RELEASE_NOTES_v0.9.3.en.md) · [Upgrade guide](docs/UPGRADE_v0.9.3.en.md) · [Reliability and migrations](docs/CORE_RELIABILITY.en.md) · [Previous release](docs/RELEASE_NOTES_v0.9.2.en.md)
38
+ [Release notes](docs/RELEASE_NOTES_v0.10.0.en.md) · [Upgrade guide](docs/UPGRADE_v0.10.0.en.md) · [Knowledge protocol](docs/AGENT_KNOWLEDGE_API.en.md) · [Previous release](docs/RELEASE_NOTES_v0.9.4.en.md)
39
39
 
40
40
  ## Operate the System by Conversation
41
41
 
@@ -125,7 +125,7 @@ To explore before installing, use the [online experience](https://trial.bailingh
125
125
  To run the complete disposable loop locally:
126
126
 
127
127
  ```bash
128
- git clone --branch v0.9.3 --depth 1 https://github.com/bailinghub/bailinghub.git
128
+ git clone --branch v0.10.0 --depth 1 https://github.com/bailinghub/bailinghub.git
129
129
  cd bailinghub
130
130
  export BAILING_TOKEN="${BAILING_TOKEN:-$(openssl rand -hex 32)}"
131
131
  docker compose up --build
@@ -214,7 +214,7 @@ Run separate BailingHub deployments for mutually isolated organizations. A `clie
214
214
  - [HTTP Contract](docs/CONTRACT.en.md) — stable network and identity boundaries.
215
215
  - [Architecture](docs/ARCHITECTURE.en.md) — runtime layers and dependency direction.
216
216
  - [English Documentation Map](docs/README.en.md) — the complete public documentation index.
217
- - [Changelog](docs/CHANGELOG.en.md) and [v0.9.3](docs/RELEASE_NOTES_v0.9.3.en.md) — current release changes and upgrade notes.
217
+ - [Changelog](docs/CHANGELOG.en.md) and [v0.10.0](docs/RELEASE_NOTES_v0.10.0.en.md) — current release changes and upgrade notes.
218
218
 
219
219
  ## Feedback and Ecosystem
220
220
 
package/README.md CHANGED
@@ -27,13 +27,13 @@
27
27
 
28
28
  在线体验环境只用于了解产品和配置方式。请勿上传生产凭据、敏感数据或接入真实业务;正式使用请自行部署开源版。
29
29
 
30
- ## v0.9.3:有限收包与通知可靠收尾
30
+ ## v0.10.0:按需读取知识,更清楚地配置与排障
31
31
 
32
- HTTP 工具正文与远程附件在收包时执行限额,超限写操作保留原调用的未知结果,不自动重发。正常关闭等待回调、通知和死信记录的实际收尾;执行器死信只重投原通知子任务,并以持久标记防止同一死信重复入队。新增只读后台维护指标。
32
+ 本地智能体查一个能力时,可以先看简短提示,再按需读取相关知识与工具指导;旧客户端和自带聊天继续原有装配方式。控制台改善首次接入、调用示例、草稿保护、审批状态与排障返回路径;较大的工具参数使用统一有界限制,保留完整审批参数和原调用核对。
33
33
 
34
- 配套为 **Core 0.9.3 + MCP / Agent Client SDK 0.7.0 + DSH 0.7.0**。升级须显式应用 **067**,更早版本补齐前序迁移;新 MySQL DLQ 读写须先就绪。共享 USD 额度、统一倍率与客户端编排保持。通知排空覆盖正常关闭,未提供全量持久通知 outbox;发行不代表具体环境已升级。
34
+ 配套为 **Core 0.10.0 + MCP / Agent Client SDK 0.8.0 + DSH 0.8.0**。新模型策略将默认输出预算、服务上限、供应商参数和思考预算语义分开;旧服务不自动改配置。相对 0.9.4 **没有新增 SQL**,更早版本仍按原升级链应用缺失迁移。客户端负责自己的任务循环与续段,中枢不自动重试模型或重做业务操作。
35
35
 
36
- [版本说明](docs/RELEASE_NOTES_v0.9.3.md) · [升级指南](docs/UPGRADE_v0.9.3.md) · [可靠性与迁移](docs/CORE_RELIABILITY.md) · [上一版本](docs/RELEASE_NOTES_v0.9.2.md)
36
+ [版本说明](docs/RELEASE_NOTES_v0.10.0.md) · [升级指南](docs/UPGRADE_v0.10.0.md) · [知识协议](docs/AGENT_KNOWLEDGE_API.md) · [上一版本](docs/RELEASE_NOTES_v0.9.4.md)
37
37
 
38
38
  ## 适合哪些团队
39
39
 
@@ -115,7 +115,7 @@ HTTP 工具正文与远程附件在收包时执行限额,超限写操作保留
115
115
  在本机启动中枢、MySQL、Demo 业务系统、工具源、路由和接入方:
116
116
 
117
117
  ```bash
118
- git clone --branch v0.9.3 --depth 1 https://github.com/bailinghub/bailinghub.git
118
+ git clone --branch v0.10.0 --depth 1 https://github.com/bailinghub/bailinghub.git
119
119
  cd bailinghub
120
120
  export BAILING_TOKEN="${BAILING_TOKEN:-$(openssl rand -hex 32)}"
121
121
  docker compose up --build
@@ -199,7 +199,7 @@ BailingHub Core 是独立服务,只通过稳定网络契约与业务系统协
199
199
  | 集中开启本地智能体与工具 | [四步配置指南](docs/LOCAL_AGENT_SETUP.md) · [系统说明](docs/AGENT_SYSTEM_INFO.md) |
200
200
  | 查 API 与边界契约 | [HTTP 契约](docs/CONTRACT.md) · [Client API](docs/CLIENT_API.md) |
201
201
  | 理解架构与长期取舍 | [架构](docs/ARCHITECTURE.md) · [项目愿景](VISION.md) |
202
- | 查看版本变化 | [CHANGELOG](docs/CHANGELOG.md) · [v0.9.3](docs/RELEASE_NOTES_v0.9.3.md) |
202
+ | 查看版本变化 | [CHANGELOG](docs/CHANGELOG.md) · [v0.10.0](docs/RELEASE_NOTES_v0.10.0.md) |
203
203
 
204
204
  完整中英文文档地图见 [docs/README.md](docs/README.md)。公共 API、SDK、Schema、Docker Demo 与代码标识保持语言中立。
205
205
 
package/SECURITY.md CHANGED
@@ -40,8 +40,8 @@ Maintainers can supply deployment-specific markers at audit time through either:
40
40
 
41
41
  For example, a protected test environment may set `BAILING_PUBLIC_DENYLIST_JSON='["DEPLOYMENT_ONLY_MARKER_ALPHA_42"]'`. Audit failures report only the marker index and never echo its value. The external file path is rejected when it resolves inside the repository.
42
42
 
43
- ## Time-limited dependency exception
43
+ ## DOCX dependency assurance
44
44
 
45
- [GHSA-hp3w-g68c-fv3c](https://github.com/advisories/GHSA-hp3w-g68c-fv3c) remains open in `sprintf-js`, introduced by the Mammoth command-line dependency chain. No patched release is currently available. The runtime and console use Mammoth library APIs; reviewed DOCX extraction and HTML conversion do not load `argparse` or `sprintf-js`, including when document text contains the reported precision payloads.
45
+ Core and its bundled console use a reproducible library-only Mammoth distribution. It retains the original parsing sources and license while removing the unused command-line interface and its `argparse → sprintf-js` dependency chain. The previous time-limited exception for [GHSA-hp3w-g68c-fv3c](https://github.com/advisories/GHSA-hp3w-g68c-fv3c) is retired; no dependency finding is currently excepted.
46
46
 
47
- The [audit policy](security/dependency-audit-exceptions.json) records the exact advisory, dependency versions and paths, reviewed source hashes, owner and expiry of 2026-11-09. `npm run audit:deps` retains the raw findings and blocks new findings, changed dependency or source usage, and expired exceptions. This exception is not a vulnerability fix and does not apply to using Mammoth's command-line interface. Re-review the exception when modifying the DOCX adapters or their dependency chain; remove it when an appropriate upstream fix is available.
47
+ `npm run audit:deps` requires zero raw findings, verifies the vendored source/archive, and separately queries direct advisories under the original upstream `mammoth` name and version. Registry failure, changed source/distribution, any finding or a reintroduced CLI dependency blocks the gate. See [DOCX source and audit policy](docs/DOCX_DEPENDENCY.en.md) ([中文](docs/DOCX_DEPENDENCY.md)) for reproduction, compatibility tests and the npm/Docker/source-export boundaries. This is not a general document-safety certification or an assertion that upstream sprintf-js is patched.
@@ -13,6 +13,10 @@ Regenerate it with `npm run notices:generate` and verify it with `npm run notice
13
13
  - BailingHub and its demo business service use the official [Node.js](https://github.com/nodejs/node) 22 Bookworm Slim image as their default container base. Node.js and the Debian packages in that image retain their own licenses and notices.
14
14
  - The default Docker Compose topology runs [MySQL Community Server](https://www.mysql.com/products/community/) 8.4 as a separate service. The public mirror configured by BailingHub is a redistribution of the upstream MySQL image; operators may replace it through `BAILING_MYSQL_IMAGE`. MySQL Community Server is licensed by its upstream project under GPL terms and is not relicensed as part of BailingHub.
15
15
 
16
+ ## Vendored DOCX Library
17
+
18
+ The library-only [Mammoth distribution](vendor/mammoth-library/SOURCE.json) preserves the upstream BSD-2-Clause [license](vendor/mammoth-library/LICENSE) and library source. BailingHub removes its command-line interface and argparse dependency, uses a distinct package name/version, and bundles it for npm consumers. See the [source and audit policy](docs/DOCX_DEPENDENCY.md) for reproducibility and upstream advisory checks.
19
+
16
20
  ## JavaScript Dependency Inventory
17
21
 
18
22
  The package license texts and copyright notices remain in the installed package distributions. The table below is an inventory, not a replacement for those upstream license files.
@@ -23,6 +27,7 @@ The package license texts and copyright notices remain in the installed package
23
27
  | Console | [@babel/helper-validator-identifier](https://www.npmjs.com/package/@babel/helper-validator-identifier) | 7.29.7 | MIT | runtime |
24
28
  | Console | [@babel/parser](https://www.npmjs.com/package/@babel/parser) | 7.29.9 | MIT | runtime |
25
29
  | Console | [@babel/types](https://www.npmjs.com/package/@babel/types) | 7.29.8 | MIT | runtime |
30
+ | Console | [@bailinghub/mammoth-library](vendor/mammoth-library/LICENSE) | 1.12.0-bailinghub.1 | BSD-2-Clause | runtime |
26
31
  | Console | [@ctrl/tinycolor](https://www.npmjs.com/package/@ctrl/tinycolor) | 4.2.0 | MIT | runtime |
27
32
  | Console | [@element-plus/icons-vue](https://www.npmjs.com/package/@element-plus/icons-vue) | 2.3.2 | MIT | runtime |
28
33
  | Console | [@esbuild/aix-ppc64](https://www.npmjs.com/package/@esbuild/aix-ppc64) | 0.25.12 | MIT | build/test |
@@ -56,7 +61,6 @@ The package license texts and copyright notices remain in the installed package
56
61
  | Console | [@floating-ui/utils](https://www.npmjs.com/package/@floating-ui/utils) | 0.2.11 | MIT | runtime |
57
62
  | Console | [@jridgewell/sourcemap-codec](https://www.npmjs.com/package/@jridgewell/sourcemap-codec) | 1.6.0 | MIT | runtime |
58
63
  | Console | [@mixmark-io/domino](https://www.npmjs.com/package/@mixmark-io/domino) | 2.2.0 | BSD-2-Clause | runtime |
59
- | Console | [@popperjs/core](https://www.npmjs.com/package/@popperjs/core) | 2.11.8 | MIT | runtime |
60
64
  | Console | [@rollup/rollup-android-arm-eabi](https://www.npmjs.com/package/@rollup/rollup-android-arm-eabi) | 4.61.1 | MIT | build/test |
61
65
  | Console | [@rollup/rollup-android-arm64](https://www.npmjs.com/package/@rollup/rollup-android-arm64) | 4.61.1 | MIT | build/test |
62
66
  | Console | [@rollup/rollup-darwin-arm64](https://www.npmjs.com/package/@rollup/rollup-darwin-arm64) | 4.61.1 | MIT | build/test |
@@ -82,6 +86,7 @@ The package license texts and copyright notices remain in the installed package
82
86
  | Console | [@rollup/rollup-win32-ia32-msvc](https://www.npmjs.com/package/@rollup/rollup-win32-ia32-msvc) | 4.61.1 | MIT | build/test |
83
87
  | Console | [@rollup/rollup-win32-x64-gnu](https://www.npmjs.com/package/@rollup/rollup-win32-x64-gnu) | 4.61.1 | MIT | build/test |
84
88
  | Console | [@rollup/rollup-win32-x64-msvc](https://www.npmjs.com/package/@rollup/rollup-win32-x64-msvc) | 4.61.1 | MIT | build/test |
89
+ | Console | [@sxzz/popperjs-es](https://www.npmjs.com/package/@sxzz/popperjs-es) | 2.11.8 | MIT | runtime |
85
90
  | Console | [@types/estree](https://www.npmjs.com/package/@types/estree) | 1.0.9 | MIT | build/test |
86
91
  | Console | [@types/lodash](https://www.npmjs.com/package/@types/lodash) | 4.17.24 | MIT | runtime |
87
92
  | Console | [@types/lodash-es](https://www.npmjs.com/package/@types/lodash-es) | 4.17.12 | MIT | runtime |
@@ -101,7 +106,6 @@ The package license texts and copyright notices remain in the installed package
101
106
  | Console | [@vueuse/metadata](https://www.npmjs.com/package/@vueuse/metadata) | 14.3.0 | MIT | runtime |
102
107
  | Console | [@vueuse/shared](https://www.npmjs.com/package/@vueuse/shared) | 14.3.0 | MIT | runtime |
103
108
  | Console | [@xmldom/xmldom](https://www.npmjs.com/package/@xmldom/xmldom) | 0.8.15 | MIT | runtime |
104
- | Console | [argparse](https://www.npmjs.com/package/argparse) | 1.0.10 | MIT | runtime |
105
109
  | Console | [async-validator](https://www.npmjs.com/package/async-validator) | 4.2.5 | MIT | runtime |
106
110
  | Console | [base64-js](https://www.npmjs.com/package/base64-js) | 1.5.1 | MIT | runtime |
107
111
  | Console | [bluebird](https://www.npmjs.com/package/bluebird) | 3.4.7 | MIT | runtime |
@@ -126,7 +130,6 @@ The package license texts and copyright notices remain in the installed package
126
130
  | Console | [lodash-unified](https://www.npmjs.com/package/lodash-unified) | 1.0.3 | MIT | runtime |
127
131
  | Console | [lop](https://www.npmjs.com/package/lop) | 0.4.2 | BSD-2-Clause | runtime |
128
132
  | Console | [magic-string](https://www.npmjs.com/package/magic-string) | 0.30.21 | MIT | runtime |
129
- | Console | [mammoth](https://www.npmjs.com/package/mammoth) | 1.12.0 | BSD-2-Clause | runtime |
130
133
  | Console | [memoize-one](https://www.npmjs.com/package/memoize-one) | 6.0.0 | MIT | runtime |
131
134
  | Console | [nanoid](https://www.npmjs.com/package/nanoid) | 3.3.20 | MIT | runtime |
132
135
  | Console | [normalize-wheel-es](https://www.npmjs.com/package/normalize-wheel-es) | 1.2.0 | BSD-3-Clause | runtime |
@@ -143,19 +146,19 @@ The package license texts and copyright notices remain in the installed package
143
146
  | Console | [safe-buffer](https://www.npmjs.com/package/safe-buffer) | 5.1.2 | MIT | runtime |
144
147
  | Console | [setimmediate](https://www.npmjs.com/package/setimmediate) | 1.0.5 | MIT | runtime |
145
148
  | Console | [source-map-js](https://www.npmjs.com/package/source-map-js) | 1.2.2 | BSD-3-Clause | runtime |
146
- | Console | [sprintf-js](https://www.npmjs.com/package/sprintf-js) | 1.0.3 | BSD-3-Clause | runtime |
147
149
  | Console | [string_decoder](https://www.npmjs.com/package/string_decoder) | 1.1.1 | MIT | runtime |
148
150
  | Console | [tinyglobby](https://www.npmjs.com/package/tinyglobby) | 0.2.17 | MIT | build/test |
149
151
  | Console | [turndown](https://www.npmjs.com/package/turndown) | 7.2.4 | MIT | runtime |
150
152
  | Console | [typescript](https://www.npmjs.com/package/typescript) | 5.9.3 | Apache-2.0 | runtime |
151
153
  | Console | [underscore](https://www.npmjs.com/package/underscore) | 1.13.8 | MIT | runtime |
152
154
  | Console | [util-deprecate](https://www.npmjs.com/package/util-deprecate) | 1.0.2 | MIT | runtime |
153
- | Console | [vite](https://www.npmjs.com/package/vite) | 6.4.3 | MIT | build/test |
155
+ | Console | [vite](https://www.npmjs.com/package/vite) | 6.4.4 | MIT | build/test |
154
156
  | Console | [vue](https://www.npmjs.com/package/vue) | 3.5.43 | MIT | runtime |
155
157
  | Console | [vue-component-type-helpers](https://www.npmjs.com/package/vue-component-type-helpers) | 3.3.4 | MIT | runtime |
156
158
  | Console | [vue-demi](https://www.npmjs.com/package/vue-demi) | 0.14.10 | MIT | runtime |
157
159
  | Console | [vue-router](https://www.npmjs.com/package/vue-router) | 4.6.4 | MIT | runtime |
158
160
  | Console | [xmlbuilder](https://www.npmjs.com/package/xmlbuilder) | 10.1.1 | MIT | runtime |
161
+ | Hub | [@bailinghub/mammoth-library](vendor/mammoth-library/LICENSE) | 1.12.0-bailinghub.1 | BSD-2-Clause | runtime |
159
162
  | Hub | [@esbuild/aix-ppc64](https://www.npmjs.com/package/@esbuild/aix-ppc64) | 0.28.1 | MIT | runtime |
160
163
  | Hub | [@esbuild/android-arm](https://www.npmjs.com/package/@esbuild/android-arm) | 0.28.1 | MIT | runtime |
161
164
  | Hub | [@esbuild/android-arm64](https://www.npmjs.com/package/@esbuild/android-arm64) | 0.28.1 | MIT | runtime |
@@ -198,7 +201,6 @@ The package license texts and copyright notices remain in the installed package
198
201
  | Hub | [@xmldom/xmldom](https://www.npmjs.com/package/@xmldom/xmldom) | 0.8.15 | MIT | runtime |
199
202
  | Hub | [ajv](https://www.npmjs.com/package/ajv) | 8.20.0 | MIT | build/test |
200
203
  | Hub | [ajv-formats](https://www.npmjs.com/package/ajv-formats) | 3.0.1 | MIT | build/test |
201
- | Hub | [argparse](https://www.npmjs.com/package/argparse) | 1.0.10 | MIT | runtime |
202
204
  | Hub | [aws-ssl-profiles](https://www.npmjs.com/package/aws-ssl-profiles) | 1.1.2 | MIT | runtime |
203
205
  | Hub | [base64-js](https://www.npmjs.com/package/base64-js) | 1.5.1 | MIT | runtime |
204
206
  | Hub | [bluebird](https://www.npmjs.com/package/bluebird) | 3.4.7 | MIT | runtime |
@@ -222,7 +224,6 @@ The package license texts and copyright notices remain in the installed package
222
224
  | Hub | [long](https://www.npmjs.com/package/long) | 5.3.2 | Apache-2.0 | runtime |
223
225
  | Hub | [lop](https://www.npmjs.com/package/lop) | 0.4.2 | BSD-2-Clause | runtime |
224
226
  | Hub | [lru.min](https://www.npmjs.com/package/lru.min) | 1.1.4 | MIT | runtime |
225
- | Hub | [mammoth](https://www.npmjs.com/package/mammoth) | 1.12.0 | BSD-2-Clause | runtime |
226
227
  | Hub | [mysql2](https://www.npmjs.com/package/mysql2) | 3.24.3 | MIT | runtime |
227
228
  | Hub | [named-placeholders](https://www.npmjs.com/package/named-placeholders) | 1.1.6 | MIT | runtime |
228
229
  | Hub | [option](https://www.npmjs.com/package/option) | 0.2.4 | BSD-2-Clause | runtime |
@@ -237,7 +238,6 @@ The package license texts and copyright notices remain in the installed package
237
238
  | Hub | [safe-buffer](https://www.npmjs.com/package/safe-buffer) | 5.1.2 | MIT | runtime |
238
239
  | Hub | [safer-buffer](https://www.npmjs.com/package/safer-buffer) | 2.1.2 | MIT | runtime |
239
240
  | Hub | [setimmediate](https://www.npmjs.com/package/setimmediate) | 1.0.5 | MIT | runtime |
240
- | Hub | [sprintf-js](https://www.npmjs.com/package/sprintf-js) | 1.0.3 | BSD-3-Clause | runtime |
241
241
  | Hub | [sql-escaper](https://www.npmjs.com/package/sql-escaper) | 1.5.1 | MIT | runtime |
242
242
  | Hub | [string_decoder](https://www.npmjs.com/package/string_decoder) | 1.1.1 | MIT | runtime |
243
243
  | Hub | [tsx](https://www.npmjs.com/package/tsx) | 4.22.4 | MIT | runtime |
@@ -18,7 +18,7 @@ services:
18
18
  retries: 30
19
19
 
20
20
  demo-business:
21
- image: ${BAILING_DEMO_BUSINESS_IMAGE:-crpi-xm97pbcjrmf5in3s.cn-shanghai.personal.cr.aliyuncs.com/bailinghub/bailing-demo-business:0.9.3}
21
+ image: ${BAILING_DEMO_BUSINESS_IMAGE:-crpi-xm97pbcjrmf5in3s.cn-shanghai.personal.cr.aliyuncs.com/bailinghub/bailing-demo-business:0.10.0}
22
22
  environment:
23
23
  DEMO_HOST: 0.0.0.0
24
24
  DEMO_PORT: 19080
@@ -29,7 +29,7 @@ services:
29
29
  - "${BAILING_DEMO_PUBLIC_PORT:-19080}:19080"
30
30
 
31
31
  bailinghub:
32
- image: ${BAILINGHUB_IMAGE:-crpi-xm97pbcjrmf5in3s.cn-shanghai.personal.cr.aliyuncs.com/bailinghub/bailinghub:0.9.3}
32
+ image: ${BAILINGHUB_IMAGE:-crpi-xm97pbcjrmf5in3s.cn-shanghai.personal.cr.aliyuncs.com/bailinghub/bailinghub:0.10.0}
33
33
  depends_on:
34
34
  mysql:
35
35
  condition: service_healthy
@@ -50,9 +50,7 @@ the end user to paste a BailingHub Client Token, Tool Provider Secret, or busine
50
50
 
51
51
  ### 3.1 Deploy Core and apply migrations
52
52
 
53
- For the complete cross-system flow, use BailingHub 0.7.0, Agent Client SDK 0.5.0 and DSH 0.5.0
54
- or a compatible client. Apply all outstanding migrations, including 055–059, as part of the
55
- deployment; runtime startup does not apply them.
53
+ The current component set is Core 0.10.0, MCP / Agent Client SDK 0.8.0 and DSH 0.8.0 or a compatible host. Complete conversation audit retains its existing protocol; hosts explicitly negotiate on-demand knowledge. Apply all outstanding migrations through 068 as a deployment step. Public 0.9.4 upgrades add no SQL, and runtime startup never applies migrations. See the [upgrade guide](UPGRADE_v0.10.0.en.md).
56
54
  Confirm that health and readiness pass, no migration is pending, the console can edit
57
55
  Agent Client settings, and production traffic uses HTTPS.
58
56
 
@@ -47,7 +47,7 @@ BailingHub Client Token、Tool Provider Secret 或业务系统密码的步骤。
47
47
 
48
48
  ### 3.1 部署 Core 并执行数据库迁移
49
49
 
50
- 完整对话归档使用 BailingHub0.7.0、Agent Client SDK0.5.0及兼容客户端。Core需要按账本应用全部未执行迁移,包括055/056/057及本版058/059;由一个部署步骤执行迁移,运行时启动不会自动迁移。
50
+ 当前配套为 Core 0.10.0、MCP / Agent Client SDK 0.8.0 与 DSH 0.8.0 或兼容宿主。完整对话归档沿用既有协议,新知识按需交付由宿主显式协商。按账本应用全部未执行迁移(截至 068);从公开 0.9.4 升级没有新增 SQL。由部署步骤显式迁移,运行时启动不会自动迁移;见 [升级指南](UPGRADE_v0.10.0.md)。
51
51
  升级后先确认:
52
52
 
53
53
  - `/health` 和 `/health/ready` 正常;
@@ -1,6 +1,6 @@
1
1
  # Agent Client Runtime v1
2
2
 
3
- Unreleased paired addition: [task control](AGENT_TASK_CONTROL.en.md) adds trusted `task_binding` to turns and echoes it. Enrolled Sessions cannot omit it; runtime searches must use the original `run_id`. Read-only inspection and explicit original-operation continuation remain separate.
3
+ Available as an optional capability since Core 0.8.0, [task control](AGENT_TASK_CONTROL.en.md) adds trusted `task_binding` to turns and echoes it. Enrolled Sessions cannot omit it; runtime searches must use the original `run_id`. Read-only inspection and explicit original-operation continuation remain separate.
4
4
 
5
5
  English | [简体中文](AGENT_CLIENT_RUNTIME_API.md)
6
6
 
@@ -12,7 +12,9 @@ does not replace `/run`, chat entries, or the executor protocol. See the
12
12
 
13
13
  Every endpoint requires `Authorization: Bearer <Agent access token>` and returns
14
14
  `Cache-Control: no-store`. The workspace is the intersection of the Client `allowed_routes`, Agent
15
- Session `allowed_routes`, enabled and audience-compatible routes, and `tools.agent_direct`.
15
+ Session `allowed_routes`, enabled and audience-compatible routes, with `agent_client.enabled`.
16
+ Business tool discovery and execution additionally require `tools.agent_direct`. A knowledge-only
17
+ workspace can bootstrap and prepare a turn with an empty business tool catalog.
16
18
  `agent_client.enabled=false` disables this Runtime only; it does not disable the older
17
19
  `/agent-api/v1/tools` surface.
18
20
 
@@ -22,6 +24,9 @@ Session `allowed_routes`, enabled and audience-compatible routes, and `tools.age
22
24
  - `GET /agent-api/v1/workspaces/:route/bootstrap`
23
25
  - `POST /agent-api/v1/workspaces/:route/turns`
24
26
  - `POST /agent-api/v1/workspaces/:route/capabilities/search`
27
+ - `GET /agent-api/v1/workspaces/:route/knowledge/capabilities`
28
+ - `POST /agent-api/v1/workspaces/:route/knowledge/search`
29
+ - `POST /agent-api/v1/workspaces/:route/knowledge/read`
25
30
  - `POST /agent-api/v1/runs/:run_id/complete`
26
31
  - Tool execution continues to use `POST /agent-api/v1/tool-invocations` and the existing resume
27
32
  endpoint.
@@ -29,6 +34,31 @@ Session `allowed_routes`, enabled and audience-compatible routes, and `tools.age
29
34
  Raw JSON for `turns` and `complete` is limited to 512 KiB. Parsed values still have strict field
30
35
  limits; the service rejects invalid input instead of truncating it silently.
31
36
 
37
+ Hosts supporting the [Agent knowledge protocol](AGENT_KNOWLEDGE_API.en.md) may explicitly request
38
+ `knowledge_delivery: "on_demand"` in a turn. This option is part of the immutable turn request hash.
39
+ The server echoes the negotiated mode in `context.knowledge_delivery`, retaining instructions,
40
+ governance and memory while replacing supplementary knowledge bodies with bounded hints.
41
+ Absent this option, legacy inline knowledge remains unchanged. Native chat/embed/widget do not
42
+ use this option. Hosts must not silently remove unnegotiated bodies.
43
+
44
+ Tool invocation `arguments` must remain an object. The limit is **1048576 bytes (1 MiB)**,
45
+ measured as UTF-8 bytes of `JSON.stringify(arguments)`, including JSON escaping. The full HTTP
46
+ JSON envelope is limited to **2097152 bytes (2 MiB)**. Executor `/jobs/:job_id/tools/invoke`
47
+ uses the same budgets. These explicit tool budgets are independent of `BAILING_JSON_BODY_MAX_BYTES`;
48
+ other endpoints and business capability field limits remain separate. Composite HTML/CSS fields
49
+ remain objects, subject to the capability schema and business validation.
50
+
51
+ Oversize requests are rejected before dispatch with HTTP 413, `error=arguments_too_large`,
52
+ `origin=core`, `dispatch=not_dispatched`, `limit_scope=arguments|request_body`, and `max_bytes`.
53
+ Argument rejection includes exact `actual_bytes`. Streaming envelope rejection includes
54
+ `observed_bytes`, the bytes observed when reading stopped, which may be less than the full request.
55
+ No body or credential is echoed. Older MCP/SDK clients enforce their own smaller limits and need
56
+ the matching client fix; updating Core alone cannot change installed clients.
57
+
58
+ Complete approval argument snapshots retain the exact idempotency hash. Notifications use bounded
59
+ summaries, and large snapshots are read on demand in the console. Larger transport budgets do not
60
+ bypass identity, authorization, approval, idempotency, or audit checks.
61
+
32
62
  ## Write and approval semantics
33
63
 
34
64
  `tools.agent_direct.write_tools` exposes exact write operation IDs to the local Agent. Approval
@@ -160,6 +190,46 @@ owns dynamic tool replacement/append behavior and the current loaded-tool set.
160
190
 
161
191
  ## Tool invocation and recovery
162
192
 
193
+ ### Read usage guidance by tool name
194
+
195
+ Discovery `description` remains short: the OpenAPI compiler caps it at 500 Unicode code points.
196
+ Optional `usage_guidance_available: true` identifies separate guidance; `description_truncated: true`
197
+ only means the short description itself was shortened, with a `tool_description_truncated` compile
198
+ warning. Separate detail does not imply truncation. When both OpenAPI `summary` and `description`
199
+ are present, both remain in explicit guidance rather than silently discarding `description`.
200
+
201
+ ```http
202
+ GET /agent-api/v1/tools/page_save?route=pages&capability_revision=<current-capability-revision>
203
+ Authorization: Bearer <Agent access token>
204
+ ```
205
+
206
+ The `bailing.agent-tool-detail.v1` response contains `route`, `capability_revision`, the existing
207
+ allowlisted `tool` projection, and `usage_guidance: { text, truncated, source_chars, max_chars,
208
+ source_bytes, max_bytes }`. Scope, risk, approval, readonly and idempotency keep their existing
209
+ machine meanings. Guidance never grants permission or replaces server validation. Detail combines
210
+ only standard summary/description, ACC when-to-use/returns and the first example; it does not expose
211
+ the original spec, extension bag, Provider URL or credentials.
212
+
213
+ Guidance is bounded by both **32768 Unicode code points** and **65536 UTF-8 bytes**, whichever is
214
+ reached first, without splitting characters. Source counts describe the guidance before truncation,
215
+ after control-character cleanup. `truncated: true` means even this detail is incomplete, with a
216
+ `tool_usage_guidance_truncated` compile warning. Authors should shorten guidance and put critical
217
+ conditions first; schema and ACC machine checks continue independently. Catalogs and searches do
218
+ not inline the full guidance.
219
+
220
+ Each read revalidates current Client, Session, route, audience, subject and exact tool authorization.
221
+ A stale revision returns `409 capability_changed`; an unavailable tool returns `404 tool_not_found`.
222
+ This read creates no invocation/job, consumes no approval or execution allowance and makes no
223
+ business request. Responses use `Cache-Control: no-store`. Older clients can ignore optional fields;
224
+ missing fields or an unsupported endpoint on an older server do not prove its short description
225
+ contains all prerequisites.
226
+
227
+ The capability revision includes the compiled public projection and bounded guidance. A compiler
228
+ upgrade that changes descriptions, flags or guidance therefore invalidates discovery caches even
229
+ when the raw spec is unchanged. This discovery revision remains separate from an invocation's
230
+ frozen execution fingerprint: guidance-only changes do not block original approval continuation
231
+ and do not permit automatic redispatch.
232
+
163
233
  Invoke only a tool projected by the current bootstrap/search result. Core revalidates the Agent
164
234
  Session, route, operation ID, ACC declaration, approval state, limits, and business authorization
165
235
  on every invocation. When the result is pending, in progress, or uncertain, resume the original
@@ -180,6 +250,21 @@ raw business response bodies.
180
250
 
181
251
  ## Complete
182
252
 
253
+ Authorization-level execution summaries can use `bailing.authorization-execution-summary.v1`
254
+ inside the existing `content` string. They contain only original invocation IDs, original tool
255
+ names, last-known states, `next_action: "inspect_original"` for unresolved calls, and total/omitted
256
+ counts. New DSH summaries exclude business result text. They are neither a complete audit nor a
257
+ current outcome check, and they do not invent a reference for retrieving full original output.
258
+
259
+ When assembling the next turn's `memory.recent`, Core recognizes this marker only in outbound
260
+ messages and projects allowed fact fields again. It fixes `kind: "authorization_execution_summary"`,
261
+ `source: "agent_client"` and `trust: "reference_only"`: a client-claimed schema does not verify an
262
+ outcome or grant authority. User messages cannot acquire execution provenance by including the
263
+ same marker. Memory limits omit whole invocation records with explicit counts; very small limits
264
+ return an explicit omission notice, never partial JSON. Existing assistant text and immutable
265
+ completion bodies remain compatible. This adds neither user long-term memory nor full-audit
266
+ storage guarantees.
267
+
183
268
  ```json
184
269
  {
185
270
  "assistant_message_id": "assistant-message-1",
@@ -1,10 +1,10 @@
1
1
  # Agent Client Runtime v1
2
2
 
3
- 未发布配套增量:[任务控制](AGENT_TASK_CONTROL.md)为 turn 增加宿主 `task_binding` 和原样回显;已加入任务的 Session 不能省略,业务搜索须使用原 `run_id`。原调用只读核对与显式继续分别处理。
3
+ Core 0.8.0 起提供的可选[任务控制](AGENT_TASK_CONTROL.md)为 turn 增加宿主 `task_binding` 和原样回显;已加入任务的 Session 不能省略,业务搜索须使用原 `run_id`。原调用只读核对与显式继续分别处理。
4
4
 
5
5
  本版本化接口让已完成 Agent Auth 网页授权的本地智能体在本地承担规划,同时继续复用 BailingHub 的身份重验、工具治理、审批、审计与对话总账。它不替代现有 `/run`、聊天入口或执行器协议。配套的部署、业务授权页和宿主接入步骤见 [Agent Client v1 接入指南](AGENT_CLIENT_QUICKSTART.md),身份授权契约见 [Agent Auth v1](AGENT_AUTH_API.md)。
6
6
 
7
- 所有接口只接受 `Authorization: Bearer <Agent access token>`,响应均 `Cache-Control: no-store`。业务运行与能力接口的工作区授权面始终取以下交集:Client `allowed_routes` ∩ Agent Session `allowed_routes` ∩ 启用且 audience 允许的 route ∩ `tools.agent_direct`。`agent_client.enabled=false` 关闭 Runtime 工作区、上下文与能力接口,不关闭旧 `/agent-api/v1/tools`。
7
+ 所有接口只接受 `Authorization: Bearer <Agent access token>`,响应均 `Cache-Control: no-store`。Runtime 工作区授权面取以下交集:Client `allowed_routes` ∩ Agent Session `allowed_routes` ∩ 启用且 audience 允许的 route,并要求 `agent_client.enabled`。业务工具发现与执行另要求 `tools.agent_direct`;纯知识工作区无需打开业务工具直调,此时bootstrap/turn返回空工具集。`agent_client.enabled=false` 关闭 Runtime 工作区、上下文与能力接口,不关闭旧 `/agent-api/v1/tools`。
8
8
 
9
9
  首次选择业务目标所需的[系统说明](AGENT_SYSTEM_INFO.md)采用同一身份与路由边界,但读取说明不要求开启 Runtime 或工具直调,也不会加载工具或创建业务运行。
10
10
 
@@ -15,11 +15,20 @@
15
15
  - `GET /agent-api/v1/workspaces/:route/bootstrap`
16
16
  - `POST /agent-api/v1/workspaces/:route/turns`
17
17
  - `POST /agent-api/v1/workspaces/:route/capabilities/search`
18
+ - `GET /agent-api/v1/workspaces/:route/knowledge/capabilities`
19
+ - `POST /agent-api/v1/workspaces/:route/knowledge/search`
20
+ - `POST /agent-api/v1/workspaces/:route/knowledge/read`
18
21
  - `POST /agent-api/v1/runs/:run_id/complete`
19
22
  - 工具执行继续使用 `POST /agent-api/v1/tool-invocations` 与既有 resume 端点。
20
23
 
21
24
  `turns` 与 `complete` 的原始 JSON 请求上限为 512 KiB。该上限可覆盖 64000 字符 Unicode 文本的 JSON 编码、Turn 的 16 KiB `page_context` 以及合理 envelope;解析后仍按各字段的字符上限严格校验。
22
25
 
26
+ 工具调用的 `arguments` 必须是对象,按 `JSON.stringify(arguments)` 后的 UTF-8 字节数计量,最多 **1048576 字节(1 MiB)**。完整调用 HTTP JSON 信封最多 **2097152 字节(2 MiB)**;执行器的 `/jobs/:job_id/tools/invoke` 使用同一预算。它们是独立于 `BAILING_JSON_BODY_MAX_BYTES` 的工具调用固定安全预算,不改变其他接口或业务能力的字段上限。HTML/CSS 等复合字段继续传对象,由能力 schema 和业务服务独立校验,不能将其改成 JSON 字符串绕过校验。
27
+
28
+ 超限在派发前返回 HTTP 413:`error=arguments_too_large`、`origin=core`、`dispatch=not_dispatched`、`limit_scope=arguments|request_body` 和 `max_bytes`。参数超限返回精确的 `actual_bytes`;HTTP 信封的流式读取超限返回 `observed_bytes`,仅代表停止读取前已观察到的字节数,完整请求可能更大。回执不包含正文或凭据。较旧 MCP/SDK 有独立的小上限,需要使用配套修复候选;只升级 Core 不会改变已安装客户端的校验。
29
+
30
+ 完整审批参数快照与幂等哈希保持一致,通知只携带有界摘要;大快照在后台按需查看。放宽传输容量不会跳过主体、授权、审批、原调用幂等或审计约束。
31
+
23
32
  ## 工具审批语义
24
33
 
25
34
  `tools.agent_direct.write_tools` 只负责按精确 operationId 开放本地 Agent 可调用的写工具;工具是否需要审批默认继续以业务侧 ACC 的 `risk`、`approval.required` 和 `approval.when` 声明为准。路由只有把工具精确列入 `tools.agent_direct.force_approval_tools` 时,才会在 ACC 之外额外强制审批。高风险、ACC 明示审批和条件审批不会被路由覆盖掉。
@@ -92,6 +101,8 @@ Bootstrap 只逐字段抽取 `target_config.system_prompt`,再拼接可选 `ag
92
101
 
93
102
  同一 Agent Session + route + conversation + turn,以及同一 `user_message_id`,会冻结到同一个 `run_id` 和上下文快照;同键不同请求返回 `409`。服务端先读取本轮之前的 memory,再把用户可见消息追加到总账。
94
103
 
104
+ 支持[Agent知识按需协议](AGENT_KNOWLEDGE_API.md)的宿主可在turn请求显式添加 `knowledge_delivery: "on_demand"`,该选项计入同turn不可变请求哈希。服务端仅将补充知识正文改为有界提示,保留必要instructions、governance和memory;响应通过 `context.knowledge_delivery` 明确回显协议与模式。无该选项的旧客户端保持原有inline知识正文,自带chat/embed/widget不使用此选项。宿主不得自行删除未协商正文。
105
+
95
106
  能力搜索最多返回 12 个完整 typed tools,schema 为 `bailing.agent-capability-search.v1`。检索只在当前授权集内进行;任一工具源的 embedding 不可用时,整次搜索确定性退回 lexical 排序。
96
107
  能力搜索必须提供非空 `query`,或者提供属于当前 Agent Session 与 route 的合法 `run_id`,由服务端回退使用该 run 的 `user_input`。
97
108
 
@@ -123,12 +134,35 @@ Bootstrap 只逐字段抽取 `target_config.system_prompt`,再拼接可选 `ag
123
134
 
124
135
  ## 工具调用与恢复
125
136
 
137
+ ### 按名读取工具使用指导
138
+
139
+ 发现结果中的 `description` 仍是短说明,OpenAPI 编译上限为 500 个 Unicode 字符。存在独立的完整说明时返回可选 `usage_guidance_available: true`;短说明确实超长时另返回 `description_truncated: true` 并产生 `tool_description_truncated` 编译警告。**有详细指导不等于短说明被截断**。OpenAPI 同时提供 `summary` 和 `description` 时,两者都会保留在按需指导中,原 `description` 不再因存在 `summary` 而丢失。
140
+
141
+ 客户端可明确读取当前工具,不需要发起任务或业务调用:
142
+
143
+ ```http
144
+ GET /agent-api/v1/tools/page_save?route=pages&capability_revision=<当前能力修订>
145
+ Authorization: Bearer <Agent access token>
146
+ ```
147
+
148
+ 响应为 `bailing.agent-tool-detail.v1`,包含同一 `route`、`capability_revision`、现有白名单投影 `tool`,以及 `usage_guidance: { text, truncated, source_chars, max_chars, source_bytes, max_bytes }`。`tool` 的 scope、风险、审批、只读、幂等等机器字段保持原语义;指导文字不会扩大权限或替代服务端校验。详情只合成标准 `summary`、`description`、ACC `when_to_use` / `returns` 和首个示例,不返回原 spec、扩展袋、Provider 地址或凭据。
149
+
150
+ 指导同时受 **32768 个 Unicode code point** 和 **65536 个 UTF-8 字节**限制,先到者生效,保持完整字符。`source_chars` / `source_bytes` 是清理控制字符后的原始指导长度;`truncated: true` 明确表示详情也不完整,并产生 `tool_usage_guidance_truncated` 编译警告。接入方应缩短、前置关键条件;schema / ACC 中的机器约束继续独立执行。响应只按需携带一项指导,目录与搜索不会自动附上全文。
151
+
152
+ 每次读取都重新检查当前 Client、Session、route、audience、主体与具体工具授权;旧修订返回 `409 capability_changed`,需重新发现。无当前工具授权返回 `404 tool_not_found`。该只读路径不创建 invocation/job、不消费审批或执行额度、不调用业务接口,且响应 `Cache-Control: no-store`。新增字段可被旧客户端忽略;遇到缺少字段或不支持详情端点的旧服务端时,不能宣称短说明已包含全部前置条件。
153
+
154
+ 能力修订同时包含编译后的公开工具投影和有界指导,因此同一份原始 spec 经新编译器产生不同短说明、标记或指导时,也会使客户端缓存失效。该发现修订与 invocation 冻结的执行指纹分开:仅文案/指导变化不阻断原审批调用的恢复,也不会允许自动重复派发。
155
+
126
156
  工具已经尝试发送、但网络中断或响应正文丢失时,Core 返回 `reconciliation_required` 和 `auto_retry_allowed: false`;只读和声明幂等的工具也不能被标为 `rejected_before_dispatch`。该状态表示尚无可信结果,不证明业务已经执行或尚未执行。
127
157
 
128
158
  客户端必须保留原 `invocation_id` 及授权关联,使用现有 resume 恢复原调用。Core 重新验证当前授权并回放已保存的结果,不重新派发;结果仍不确定时需要人工核实,不能新建库存调整、订单更新等操作,也不能切换授权或改用另一工具重复执行。重新发现工具与恢复业务调用是两个动作。原审批和执行日志机制保持不变。
129
159
 
130
160
  ## Complete
131
161
 
162
+ 授权级执行摘要可在既有 `content` 字符串中使用 `bailing.authorization-execution-summary.v1`:仅包含原 `invocation_id`、原工具名、`last_known_state`、未决调用的 `next_action: "inspect_original"`,以及 `total_invocations` / `omitted_invocations`。DSH 的新投影不把业务响应原文写入这份摘要;它也不是完整审计、当前结果验证或原文读取引用。
163
+
164
+ Core 装配下一轮 `memory.recent` 时,仅对出站消息识别该标识,重新白名单投影并固定标注 `kind: "authorization_execution_summary"`、`source: "agent_client"`、`trust: "reference_only"`。这是客户端报告的历史事实,标识本身不证明权限或结果;普通用户消息不会因出现同标识而获得执行来源。预算不足时按完整调用条目省略并标注数量;极小预算返回明确的省略说明,均不会产出半段 JSON。旧普通 assistant 正文保持兼容,既有 completion 幂等正文不会被静默改写;不新增用户长期记忆或审计全文存储承诺。
165
+
132
166
  ```json
133
167
  {
134
168
  "assistant_message_id": "assistant-message-1",
@@ -0,0 +1,77 @@
1
+ # Agent knowledge search and read
2
+
3
+ [简体中文](AGENT_KNOWLEDGE_API.md) | [Runtime API](AGENT_CLIENT_RUNTIME_API.en.md)
4
+
5
+ Optional protocol `bailing.agent-knowledge.v1` applies only to Agent Clients. Native chat,
6
+ embed and widget keep existing server-side retrieval and body injection. Knowledge is
7
+ `reference_only`: it does not replace instructions, permissions, approvals or business receipts.
8
+
9
+ All endpoints require the current Agent bearer, revalidate Client/Session/route/audience and
10
+ `agent_client.enabled`, and return `Cache-Control: no-store`. Knowledge-only routes do not
11
+ require direct business tools. The client cannot supply KB IDs or document IDs.
12
+
13
+ ## Negotiation
14
+
15
+ `GET /agent-api/v1/workspaces/:route/knowledge/capabilities` returns schema
16
+ `bailing.agent-knowledge-capabilities.v1`, protocol, supported, route, enabled,
17
+ knowledge_scope_revision, delivery_modes (`inline`, `on_demand`) and limits:
18
+ search_max_results=3, search_max_bytes=4096, read_default_bytes=16384,
19
+ read_max_bytes=32768, reference_ttl_seconds=300, read_chain_max_bytes=131072.
20
+
21
+ After explicit support negotiation, a trusted host may request `knowledge_delivery: "on_demand"`
22
+ in a new turn. The option is part of the immutable request hash. Core keeps knowledge and
23
+ knowledge_refs as empty arrays and echoes context.knowledge_delivery with schema_version
24
+ `bailing.agent-knowledge-delivery.v1`, mode, protocol, scope revision, status and bounded hints.
25
+ Instructions, governance and memory remain. Legacy requests without the option retain inline
26
+ bodies. Do not silently strip bodies when negotiation fails. Old endpoint 404/405/501 may fall
27
+ back to inline; authorization/server errors and unknown schemas must not pretend success.
28
+
29
+ ## Search
30
+
31
+ `POST /agent-api/v1/workspaces/:route/knowledge/search` accepts
32
+ `{query, limit?, run_id?}`. Nonempty query is at most 2000 characters; limit is 1–3. An optional
33
+ run must be current, owned by this Session/client/route and context_ready. Managed tasks retain
34
+ their membership and active-state checks. Server-only turn preparation may issue run-bound
35
+ hints before finalization; the public endpoint cannot access preparing runs.
36
+
37
+ Schema `bailing.agent-knowledge-search.v1` returns route, optional run_id, knowledge_scope_revision,
38
+ status, trust=reference_only, hints and truncated. Each hint has ref, title, summary, revision,
39
+ score and expires_at. Summaries are bounded excerpts from actual current hits, not model output.
40
+ The entire JSON response is at most 4096 UTF-8 bytes and up to three distinct parent documents.
41
+ No knowledge body, memory or business schemas are included.
42
+
43
+ Status distinguishes ok (including zero matches), disabled, unavailable and partial. Do not call
44
+ retrieval failure “no knowledge”. Respect route thresholds; scores are not relevance probabilities.
45
+ Agent retrieval validates fresh index hits against current ready documents, ownership and exact
46
+ chunk content without changing native retrieval/cache behavior. Cross-model ranking remains an
47
+ approximation. No invocation/job or business dispatch is created.
48
+
49
+ ## Read
50
+
51
+ `POST /agent-api/v1/workspaces/:route/knowledge/read` accepts
52
+ `{ref, run_id?, cursor?, max_bytes?}`. Reuse exactly the same run and original opaque cursor.
53
+ Schema `bailing.agent-knowledge-read.v1` returns route, optional run_id, knowledge_scope_revision,
54
+ ref, revision, title, content, trust, next_cursor, truncated, budget_exhausted,
55
+ total_content_bytes and read_chain_max_bytes.
56
+
57
+ Full JSON UTF-8 response budget defaults to 16384 bytes, accepts 4096–32768, and preserves Unicode
58
+ characters. Follow next_cursor when non-null. A reference reading chain exposes at most 128 KiB
59
+ of body: its last page explicitly has truncated=true, budget_exhausted=true and next_cursor=null
60
+ if the source exceeds that limit. This is not a per-turn total budget or a complete-source claim.
61
+
62
+ References/cursors use domain-separated HMAC under the existing server token, with a five-minute
63
+ TTL and no migration/new configuration. References bind Client, Session, principal/on_behalf_of,
64
+ route, optional run, full knowledge configuration and SHA-256 of title/body. Every read revalidates
65
+ current identity, scope, task state, KB enabled state, document ownership, ready state and revision.
66
+ Shared-key processes can validate references; key rotation requires a new search.
67
+
68
+ Errors: knowledge_reference_invalid (400, including cross-identity), knowledge_reference_expired
69
+ (410), knowledge_scope_changed (409), knowledge_changed (409), knowledge_unavailable (503).
70
+ Search again when references change; never substitute a new body for an old revision or replay
71
+ a business write to repair knowledge retrieval. Errors do not include body, credentials or SQL.
72
+
73
+ Hosts expose separate knowledge search/read tools, keep hints visible, isolate caches by current
74
+ authorization and turn, reject late responses, and preserve reference-only provenance. Existing
75
+ named-context delivery confirmation only addresses duplicate assembly; it does not replace
76
+ knowledge authorization or retrieval. Required business preconditions must also live in capability
77
+ guidance and server validation.